Issue Type: Bug Bug
Affects Versions: JRuby 1.7.2
Assignee: Thomas E Enebo
Components: Launcher
Created: 20/Feb/13 11:15 AM
Description:

This is output originally taken from JRUBY-7104. The basic problem is we fail to DLL load the JVM and then we move on to trying to Command-line execute and it bombs because our shipped JVM does not register any registry keys. It would seem that we should be able to launch without valid keys defined:

>jruby -v
Cannot find Java 1.5 or higher.

>set JAVA_HOME=C:\jruby-1.7.2\jre

>jruby -v
Cannot locate Java installation, specified by JAVA_HOME:

>jruby -Xtrace log.txt
Cannot find Java 1.5 or higher.

>set JAVA_HOME=C:\jruby-1.7.2

>jruby -v
jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM
1.7.0_07-b10 [Windows Server 2008 R2-amd64]

-------------------------------------------------------------------------------
log.txt (with JAVA_HOME=C:\jruby-1.7.2\jre)
-------------------------------------------------------------------------------

Starting platform... 
Binary name is: jruby

initPlatformDir: trying to find executable on PATH
File "c:\jruby-1.7.2\bin\jruby.dll" exists
Module: c:\jruby-1.7.2\bin\jruby.dll
Platform dir: c:\jruby-1.7.2
Parsing arguments:
-Xtrace
log.txt
-Xjdkhome is not set, checking for %JAVA_HOME%...
%JAVA_HOME% is set: C:\jruby-1.7.2\jre
JvmLauncher::initialize()
javaPathOrMinVersion: C:\jruby-1.7.2\jre
checkJava('C:\jruby-1.7.2\jre', '\jre')
File "C:\jruby-1.7.2\jre\jre\bin\client\jvm.dll" does not exist
File "C:\jruby-1.7.2\jre\jre\bin\server\jvm.dll" does not exist
File "C:\jruby-1.7.2\jre\jre\bin\java.exe" does not exist
checkJava('C:\jruby-1.7.2\jre', '')
File "C:\jruby-1.7.2\jre\bin\client\jvm.dll" does not exist
File "C:\jruby-1.7.2\jre\bin\server\jvm.dll" exists
File "C:\jruby-1.7.2\jre\bin\java.exe" exists
File "C:\jruby-1.7.2\jre\bin\javaw.exe" exists
*** No need to clean the binary name: jruby
constructBootClassPath()
File "c:\jruby-1.7.2\lib\jruby.jar" exists
addToBootClassPath()
path: c:\jruby-1.7.2\lib\jruby.jar
onlyIfExists: true
File "c:\jruby-1.7.2\lib\jruby.jar" exists
File "c:\jruby-1.7.2\lib\jruby-complete.jar" does not exist
BootclassPath: c:\jruby-1.7.2\lib\jruby.jar
constructClassPath()
addJarsToClassPathFrom()
dir: c:\jruby-1.7.2
addToClassPath()
path: c:\jruby-1.7.2\lib\jruby.jar
onlyIfExists: false
No need to add "c:\jruby-1.7.2\lib\jruby.jar" to classpath, it's already in bootclasspath
No explicit classpath option is used, looking up %CLASSPATH% env
ClassPath: 
JvmLauncher::initialize()
javaPathOrMinVersion: 1.5
JvmLauncher::findJava()
javaKey: Software\JavaSoft\Java Development Kit
prefix: \jre
minJavaVersion: 1.5
getStringFromRegistry()
keyName: Software\JavaSoft\Java Development Kit
valueName: CurrentVersion
RegOpenKeyEx() failed. Cannot create a file when that file already exists. (183)
JvmLauncher::findJava()
javaKey: Software\JavaSoft\Java Runtime Environment
prefix: 
minJavaVersion: 1.5
getStringFromRegistry()
keyName: Software\JavaSoft\Java Runtime Environment
valueName: CurrentVersion
RegOpenKeyEx() failed. Cannot create a file when that file already exists. (183)
Cannot find Java 1.5 or higher.
Console is attached.
onExit()

Project: JRuby
Priority: Major Major
Reporter: Thomas E Enebo
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