|
Re: [jruby-user] how to load/require compiled script: msg#00180lang.jruby.user
which version of JRuby are you using ? 1.0.2 or 1.1 Le Huy Centre of Software Engineering - CSE 18A Hoang Quoc Viet, Hanoi, Vietnam tel.: +84 4 7919458 fax: +84 4 7914963 mobile: +84 90 3426717 url: http://le-huy.blogspot.com ----- Original Message ---- From: Peter Brant <peter.brant@xxxxxxxxx> To: user@xxxxxxxxxxxxxxxxxx Sent: Tuesday, November 20, 2007 9:34:50 PM Subject: Re: [jruby-user] how to load/require compiled script Works for me (see below). Could it be a classpath problem? Pete C:\temp\test>cat > foo.rb puts "foo" C:\temp\test>cat > bar.rb require 'foo' puts "bar" C:\temp\test>bash C:\eclipseWorkspaceQT\jruby_trunk\bin\jrubyc foo.rb bar.rb C:\temp\test>rm foo.rb bar.rb C:\temp\test>java -cp C:\eclipseWorkspaceQT\jruby_trunk\lib\jruby.jar;. bar foo bar C:\temp\test>dir Volume in Laufwerk C: hat keine Bezeichnung. Volumeseriennummer: 2078-C1CD Verzeichnis von C:\temp\test 20.11.2007 13:03 <DIR> . 20.11.2007 13:03 <DIR> .. 20.11.2007 13:03 2.878 bar.class 20.11.2007 13:03 2.707 foo.class 2 Datei(en) 5.585 Bytes 2 Verzeichnis(se), 272.867.627.008 Bytes frei On Nov 20, 2007 12:13 PM, Le Huy <lehuy_cse@xxxxxxxxx> wrote: > I have two simple ruby scripts > > #foo.rb > puts "foo" > > #bar.rb > require 'foo' > puts "bar" > > After compiling both scripts using jrubyc I got foo.class and bar.class but can not run > bar.class , load/require seems does not with compiled script > > does anyone have the same problem ? > > > > Le Huy > Centre of Software Engineering - CSE > 18A Hoang Quoc Viet, Hanoi, Vietnam > tel.: +84 4 7919458 > fax: +84 4 7914963 > mobile: +84 90 3426717 > url: http://le-huy.blogspot.com > > > > > ____________________________________________________________________________________ > Be a better sports nut! Let your teams follow you > with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email ____________________________________________________________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [jruby-user] JRuby on Rails on WebSphere: 00180, Matt Burke |
|---|---|
| Next by Date: | Re: [jruby-user] JRuby on Rails on WebSphere: 00180, Dave Newton |
| Previous by Thread: | Re: [jruby-user] how to load/require compiled scripti: 00180, Fabio Kung |
| Next by Thread: | Re: [jruby-user] how to load/require compiled script: 00180, Peter Brant |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |