今天我用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"