XAMPP装完后,直接启动TOMCAT报错,因为在catalina_start.bat中寻找注册中安装jdk的键值,而我的JDK是绿色的,非安装的..因此解决办法就是将绿色的JDK注册到系统注册表.
将下列文本,依本机环境做相应修,保存为reg文件,执行即可.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft] [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit] "CurrentVersion"="1.6.0_29" [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.6.0_03] "JavaHome"="D:\\Java\\jrockit-jdk1.6.0_29-R28.2.2-4.1.0x64" [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] "CurrentVersion"="1.6.0_29" [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0_03] "JavaHome"="D:\\Java\\jrockit-jdk1.6.0_29-R28.2.2-4.1.0x64\\jre"