当前位置: 技术问答>java相关
tomcat安装的问题~~~
来源: 互联网 发布时间:2015-04-04
本文导语: 下载的jakarta-tomcat-4.0.1.exe 无法安装。 提示如下: couldn't find a java development kit installed on this computer.please download one from http://java.sun.com 怎么办啦 | Tomcat安装的时候会在你...
下载的jakarta-tomcat-4.0.1.exe 无法安装。
提示如下:
couldn't find a java development kit installed on this computer.please
download one from http://java.sun.com
怎么办啦
提示如下:
couldn't find a java development kit installed on this computer.please
download one from http://java.sun.com
怎么办啦
|
Tomcat安装的时候会在你的WINDOWS注册表里面找:
ReadRegStr $1 HKLM "SOFTWAREJavaSoftJava Development Kit" "CurrentVersion"
ReadRegStr $2 HKLM "SOFTWAREJavaSoftJava Development Kit$1" "JavaHome"
ReadRegStr $3 HKLM "SOFTWAREJavaSoftJava Runtime Environment"
"CurrentVersion"
ReadRegStr $4 HKLM "SOFTWAREJavaSoftJava Runtime Environment$3"
"RuntimeLib"
IfErrors 0 NoAbort
MessageBox MB_OK "Couldn't find a Java Development
Kit installed on this computer. Please download one from
http://java.sun.com."
Abort
如果它在注册表里面找不到上面几个值,就会报你遇到的错误信息。
ReadRegStr $1 HKLM "SOFTWAREJavaSoftJava Development Kit" "CurrentVersion"
ReadRegStr $2 HKLM "SOFTWAREJavaSoftJava Development Kit$1" "JavaHome"
ReadRegStr $3 HKLM "SOFTWAREJavaSoftJava Runtime Environment"
"CurrentVersion"
ReadRegStr $4 HKLM "SOFTWAREJavaSoftJava Runtime Environment$3"
"RuntimeLib"
IfErrors 0 NoAbort
MessageBox MB_OK "Couldn't find a Java Development
Kit installed on this computer. Please download one from
http://java.sun.com."
Abort
如果它在注册表里面找不到上面几个值,就会报你遇到的错误信息。
|
Tomcat自身不带JDK, 你要先安装JDK, 然后才能安装Tomcat
|
在DOS窗口下运行如下命令:
java -?
如果不能运行,就说明你的JDK不能正常运行。
java -?
如果不能运行,就说明你的JDK不能正常运行。