Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0
Assignee: Thomas E Enebo
Components: Launcher
Created: 12/Nov/12 2:52 PM
Description:

JRuby cannot find Java through JAVA_HOME when option -w is used and JAVA_HOME points to a JRE.

If JAVA_HOME points to a JDK the problems disappears.

The following example shows how JAVA_HOME first pointing to the JDK, then to the JRE:

D:\>set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09

D:\>jruby -v
jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on Java HotSpot(TM) Client VM 1.7.0_0
9-b05 [Windows Vista-x86]

D:\>jruby -e "puts 'a'"
a

D:\>jruby -w -e "puts 'a'"
a

D:\>set JAVA_HOME=C:\Program Files\Java\jre7

D:\>jruby -v
jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on Java HotSpot(TM) Client VM 1.7.0_0
9-b05 [Windows Vista-x86]

D:\>jruby -e "puts 'a'"
a

D:\>jruby -w -e "puts 'a'"
Cannot locate Java installation, specified by JAVA_HOME:
Environment: jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on Java HotSpot(TM) Client VM 1.7.0_09-b05 [Windows Vista-x86]
Project: JRuby
Priority: Major Major
Reporter: Claus Folke Brobak
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to