Forum: JRuby Running JRuby from the command line just show the java options

Posted by Gandalf C. (gandalf_c)
on 2012-02-15 20:32
I've just installed jRuby on my windows machine. I used the standard
installer.

When I run jRuby from the command line, it just shows the java command
line options, as though I had just run java from the command line. e.g.

Usage: java [-options] -jar jarfile

and so on.

What am I doing wrong? How come I can't run my .rb file?
Posted by Jeffrey Lembeck (Guest)
on 2012-02-15 20:46
(Received via mailing list)
What are you typing in exactly that isn't working for you?
Posted by Thomas E Enebo (Guest)
on 2012-02-15 21:31
(Received via mailing list)
Also I wonder which Java you are running:

java -version

-Tom

On Wed, Feb 15, 2012 at 1:32 PM, Gandalf C. <lists@ruby-forum.com> 
wrote:
> What am I doing wrong? How come I can't run my .rb file?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>  http://xircles.codehaus.org/manage_email
>
>



--
blog: http://blog.enebo.com   twitter: tom_enebo
mail: tom.enebo@gmail.com
Posted by Stefanos K. (stefanos_k)
on 2012-07-26 23:50
Hi,

I just downloaded the installer (jruby_windows_x64_1_7_0_preview1.exe)
and everything seems to be ok, after the installation to my Windows 7
x64 laptop.
I check the PATH the bin folder of jruby is already in.

I type :> jruby -v to check the version, but I see the java options
(???)

Uninstall, reinstall and restart my laptop, but the problem remains.

The same happen even if I type it into the jruby/bin folder.

I have ruby 1.9.3p125 installed and java 1.6.0_30, which they both work
fine.

Can you give me an explanation and how I can fix it?

Thank you!
Posted by Thomas E Enebo (Guest)
on 2012-07-27 01:50
(Received via mailing list)
I think there is an issue with JAVA_HOME ending with "\" or "/" (e.g.
C:\Program Files\Java\1.6.0u28\ versus C:\Program
Files\Java\1.6.0u28).  I don't have the bug handy, but this is a known
issue with our installer (32bit) falling back to command-line
launching and screwing up the command line in this one case (on 64 bit
systems).  Removing the trailing slash is the workaround.  If it is
not that perhaps sending a pastie of your ENV vars (SET) will help.

-Tom

On Thu, Jul 26, 2012 at 4:50 PM, Stefanos K. <lists@ruby-forum.com> 
wrote:
> Uninstall, reinstall and restart my laptop, but the problem remains.
> --
> Posted via http://www.ruby-forum.com/.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>



--
blog: http://blog.enebo.com       twitter: tom_enebo
mail: tom.enebo@gmail.com
Posted by Stefanos K. (stefanos_k)
on 2012-07-27 09:22
Thank you very much Tom.

That was it. I had to remove the trailing slash in JAVA_HOME.

thank you again!
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.