今天我用MySQL Migration Toolkit ,說是沒有安裝JRE ,就是java虛擬機器有沒有搞錯,我裝jdk7了這種事經常遇到,你裝高版本的JRE 他老兄說你沒有裝
很多人就這樣去裝好幾個版本的JRE
作為高手必須知道問題出在哪兒? 開啟命令列輸出如下:
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. /
原來是註冊表沒有1.4資訊(廢話jdk7是1.7)做個reg檔案匯入就OK了 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Runtime Environment/1.4]"RuntimeLib"="C://Program Files//Java//jre1.7.0//bin//client//jvm.dll"