From: "Einar Magnús Boson" Date: 2008-11-20T18:20:17+09:00 Subject: Re: jruby, profligacy On 20.11.2008, at 07:05 , Charles Oliver Nutter wrote: > Einar Magnús Boson wrote: >> I am trying to test out profligacy for GUI as it seems to make it >> reasonably simple to use swing. >> http://ihate.rubyforge.org/profligacy/lel.html >> taking their examples I can get them to run although I had to `gem >> unpack` profligacy and manually specify the path. >> Can anyone explain to me what I need to do to compile this to class- >> files that will run on a computer with only normal java installed? >> where does the main-method go? > > Compilation is not hard, but you'll always need to ship JRuby if > it's not already present on the target machine. That's not hard > either, though. Is that what you want to do? > > - Charlie > I'm sure it isn't, I'm just not that used to java anymore. been a while. I guess what I want to is to end up with a .jar that when run will do the same thing as `jruby ProfTest.rb` is doing when ProfTest.rb contains: require 'profligacy/swing' require 'profligacy/lel' module Test include_package 'javax.swing' include Profligacy layout = " [ label_1 | label3 ] [ (300,300)*text1 | (150)people ] [ false end ui.build(:args => "Simple LEL Example") end how do I include jruby and profligacy inside a jar? einarmagnus