Bug #25441 Fails on detection of JRE with jdk1.6.0
Submitted: 5 Jan 2007 18:18 Modified: 15 Jan 2007 17:11
Reporter: AE H Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Migration Toolkit Severity:S2 (Serious)
Version:1.1.8 OS:Windows (Ms Windows)
Assigned to: CPU Architecture:Any
Tags: 1.4, jdk, jre, JRE 5.0 Update 8

[5 Jan 2007 18:18] AE H
Description:
Hello,
I have only a jdk 1.6. I use the jre in my jdk

HKLM [...]\Java Runtime Environment\
1.6\
JavaHome C:\Program Files\Java\jdk1.6.0\jre
RuntimeLib C:\Program Files\Java\jdk1.6.0\jre\bin\client\jvm.dll
MicroVersion 0 
1.6.0\
JavaHome C:\Program Files\Java\jdk1.6.0\jre
[..]
1.6.0\MSI\
INSTALLDIR C:\Program Files\Java\jdk1.6.0\jre\
[..]

When I launch the Mysql Migration Toolkit.
 I received this error 
"An error occurred during the intializations of the runtime system [...]
"JRE 5.0 Update 8 is necessary" or something else

But I have a jre in my jdk 1.6 (I use java everyday with my radrails IDE)

The only solution for trace error (because error information is wrong) is to launch grtsh.exe in cmd.

Result :  
====

Scanning for struct definitions in ./xml ...
Registered 15 struct definition files.
Initializing Builtin modules...
Initializing Java loader...
 ERROR: The JRE 1.4 cannot be found.
Please make sure the Sun JRE 1.4 is installed correctly.
Verify the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4\RuntimeLib

** (process:1096): WARNING **: Error initializing Java module loader (10012).
====

Thanks for your work

(A possible relation with http://bugs.mysql.com/bug.php?id=9532)

How to repeat:

Clean [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] hive
 and execute this reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.6"
"BrowserJavaVersion"="1.6.0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6]
"JavaHome"="C:\\Program Files\\Java\\jdk1.6.0\\jre"
"RuntimeLib"="C:\\Program Files\\Java\\jdk1.6.0\\jre\\bin\\client\\jvm.dll"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0]
"JavaHome"="C:\\Program Files\\Java\\jdk1.6.0\\jre"
"MicroVersion"="0"
"RuntimeLib"="C:\\Program Files\\Java\\jdk1.6.0\\jre\\bin\\client\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0\MSI]
"INSTALLDIR"="C:\\Program Files\\Java\\jdk1.6.0\\jre\\"
"SYSTRAY"="1"
"EULA"="0"
"IEXPLORER"="1"
"MOZILLA"="1"
"JAVAUPDATE"="1"
"AUTOUPDATECHECK"="1"
"JU"="1"

Suggested fix:

Just create and run thi .reg with :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4]
"RuntimeLib"="C:\\Program Files\\Java\\jdk1.6.0\\jre\\bin\\client\\jvm.dll"
[5 Jan 2007 18:59] AE H
sorry only on Ms Windows
[6 Jan 2007 3:17] MySQL Verification Team
Thank you for the bug report.

http://dev.mysql.com/doc/migration-toolkit/en/guitools-introduction.html

The MySQL Migration Toolkit and the MySQL Workbench both require the Java Runtime Environment (JRE). The minimum version supported is 5.0 update 
                       ^^^^^^^^^^^^^^^^
[9 Jan 2007 9:38] AE H
Hello, 
Sorry for my bad bug's explanation.

>The minimum version supported is 5.0 update 
I know that but with my configuration - JDK 6.0 - it's doesn't work (Alert : "JRE 5.0 Update 8 is necessary"). I can launch  MySQL Migration Toolkit only with addition of the registry line (perhaps an other line is also good, I don't know) : 
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4]
"RuntimeLib"="C:\\Program Files\\Java\\jdk1.6.0\\jre\\bin\\client\\jvm.dll"

Thanks
[15 Jan 2007 17:11] Michael G. Zinner
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html