今天想安裝一個MYSQL Migration Toolkit,在網上下載下傳了mysql-workbench-gpl-5.2.36-win32.msi和mysql-gui-tools-5.0-r17-win32.msi,并安裝成功,但是每次啟動MySQLMigrationTool.exe的時候都報錯誤:
MySQL Generic Runtime Environment 2.0.12 Type 'help' or '?' for help. Type 'quit' to exit the shell.Lua Shell initialized.Registered 12 struct definition files.Initializing native loader...Initializing Java loader...ERROR: The JRE 1.4 or newer cannot be found.Please make sure the Sun JRE 1.4 or newer is installed correctly.Verify the following registry key:HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4\RuntimeLib Error initializing Java module loader (10012). Please check the .\java and .\java\lib directories.Initializing Lua loader...Initializing Python loader...Registered 5 builtin modules.Registered 13 Lua modules. /
後來按照網上的教程修給了系統資料庫:[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4]"RuntimeLib",導入系統資料庫的檔案内容如下:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4]
"RuntimeLib"="D:\\Program Files (x86)\\Java\\jre6\\bin\\client\\jvm.dll"
但是依然不能解決問題。最後突然想到,我目前系統安裝的MYSQL Migration Toolkit是i586也就是32位的,而目前系統的JRE是x64也就是64位的,我想可能是因為這兩者之間存在不相容。後來我在網上下載下傳了32位的JRE:jre-6u30-windows-i586.exe。最後問題就解決了。
本文轉自xwdreamer部落格園部落格,原文連結:http://www.cnblogs.com/xwdreamer/archive/2011/12/23/2299429.html,如需轉載請自行聯系原作者