Forum: JRuby jruby 1.7.2 on win x64 trouble

Posted by Matt Hauck (Guest)
on 2013-01-18 08:35
(Received via mailing list)
Has anybody has any difficulty getting jruby 1.7.2 to run on windows 
x64? Can't seem to get it working with any combination of x32 jruby + 
x32 java, x64 jruby + x64 java...
Posted by Matt Hauck (Guest)
on 2013-01-18 09:16
(Received via mailing list)
Hmm. There appears to be a different logic detecting the JRE based on 
JAVA_HOME in x64 than in x32. I had my JAVA_HOME variable set to the 
"<jdk>\jre" directory, and this was not picked up properly by the x64 
launcher as it used to. Notice the difference in the two attempts the 
launcher makes to find the JRE:

On x32 machine:
1) checkJava('c:\ibm-java\60r11\jre', '\jre')

2) checkJava('c:\ibm-java\60r11\jre', '')


On x64 machine:
1) checkJava('c:\ibm-java.x64\60r11\jre', '\jre')
2) checkJava('', '')

This appears to be the case whether I install the x64 or x32 version of 
jruby.

--
Matt Hauck
Posted by Roger Pack (rogerdpack)
on 2013-02-19 22:54
Matt Hauck wrote in post #1092742:
> Hmm. There appears to be a different logic detecting the JRE based on
> JAVA_HOME in x64 than in x32. I had my JAVA_HOME variable set to the
> "<jdk>\jre" directory, and this was not picked up properly by the x64
> launcher as it used to. Notice the difference in the two attempts the
> launcher makes to find the JRE:

Maybe file a trac item?
http://jira.codehaus.org/browse/JRUBY-6696 also exists...
Posted by Thomas E Enebo (Guest)
on 2013-02-19 23:36
(Received via mailing list)
Aha.  I think I can at least explain this.  Our jruby-launcher is a
native executable which tries and DLL load JVM and it is only 32 bits.
 We have not 64 bit version at the moment.  So when trying to launch
64 bit version of JVM we build up a command line and basically exec
that built up command line.

It would appear the codepaths are not trying the exact same
combinations.  This is definitely a bug.  Apparently many folks are
switching from 32 to 64 bits recently based on the number of reports
in the last couple of weeks.

-Tom

On Fri, Jan 18, 2013 at 2:15 AM, Matt Hauck <matthauck@gmail.com> wrote:
> On x64 machine:
>
> Has anybody has any difficulty getting jruby 1.7.2 to run on windows x64?
> Can't seem to get it working with any combination of x32 jruby + x32 java,
> x64 jruby + x64 java...
>
> --
> Matt Hauck
>
>



--
blog: http://blog.enebo.com       twitter: tom_enebo
mail: tom.enebo@gmail.com
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.