On 20.11.2008, at 07:05 , Charles Oliver N. wrote:
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?
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
layout = "
[ label_1 | label3 ]
[ (300,300)*text1 | (150)people ]
[ <label2 | _ ]
[ message | buttons ]
ui = Swing::LEL.new(JFrame,layout) do |c,i|
c.label_1 = JLabel.new “The chat:”
c.label2 = JLabel.new “What you’re saying:”
c.label3 = JLabel.new “The people:”
c.text1 = JTextArea.new
c.people = JComboBox.new
c.message = JTextArea.new
c.buttons = Swing::LEL.new(JPanel, "[send|hate|quit]") do |c,i|
c.send = JButton.new "Send"
c.hate = JButton.new "Hate"
c.quit = JButton.new "Quit"
end.build :auto_create_container_gaps => false
ui.build(:args => “Simple LEL Example”)
how do I include jruby and profligacy inside a jar?