Hi all,
I’m wondering could anyone tell me what is wrong with this command
(using jruby 1.1.3):
java -jar jruby-complete.jar --1.9 myscript.rb
output :
jruby: unknown option --1.9
Thanks,
–
Cheers,
-A
Ali S., Research Assistant, LSIR - Distributed Information Systems
Laboratory
EPFL-IC-IIF-LSIR, Bâtiment BC, Station 14, CH-1015 Lausanne, Switzerland.
http://lsirpeople.epfl.ch/salehi/
email: [email protected]
Tel: +41-21-693.6656/7563 Mobile: +41-21-78.815.2020 Fax:
+41-21-693.8115
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Hi Ali,
The command line parsing for --1.9 and --1.8 arguments is done in
BAT/SH starter scripts, not on Java level, hence the error.
Essentially, what --1.9 switch does, it sets the property:
-Djruby.compat.version=RUBY1_9
So, you might just set it directly:
java -Djruby.compat.version=RUBY1_9 -jar jruby-complete.jar myscript.rb
or launch JRuby via its starter scripts (jruby and jruby.bat in bin
directory).
Thanks,
–Vladimir
On Tue, Jul 29, 2008 at 11:37 AM, Ali S. [email protected] wrote:
Thanks,
email: [email protected]
Tel: +41-21-693.6656/7563 Mobile: +41-21-78.815.2020 Fax: +41-21-693.8115
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