Strange PATH issue on Vista if JAVA_HOME is not set
---------------------------------------------------
Key: JRUBY-3814
URL: http://jira.codehaus.org/browse/JRUBY-3814
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.3.1
Environment: Windows Vista Home Premium, JRE 1.6, JRuby 1.3.1
Reporter: Daniel Berger
It seems that if java is not found in a user's PATH, and the JAVA_HOME
environment variable is not set, JRuby gets confused by "(x86)" in the path.
Here was my original PATH:
Path=C:\OpenSSL\bin;C:\Python26\;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files (x86)\CyberLink\Power2Go\;c:\Program Files (x86)\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files (x86)\Git\cmd;C:\Program Files
(x86)\GnuWin32\bin;C:\Program Files
(x86)\QuickTime\QTSystem\;C:\OpenSSL\bin;C:\Python26\;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files (x86)\CyberLink\Power2Go\;c:\Program Files (x86)\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files (x86)\Git\cmd;C:\Program Files
(x86)\GnuWin32\bin;C:\Program Files
(x86)\QuickTime\QTSystem\;C:\Ruby\bin;C:\usr\local\wbin;C:\Program Files
(x86)\PostgreSQL\8.3\bin;c:\jruby\bin
Note that putting JRuby first in the PATH did not matter.
When I tried to run "jruby -v" I got "\CyberLink\Power2Go\ was unexpected at
this time"
The issue went away once I set my JAVA_HOME environment variable.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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