当前位置: 技术问答>linux和unix
linux下tomcat无法启动,救急啊!!!!
来源: 互联网 发布时间:2015-09-15
本文导语: [root@localhost bin]# pwd /opt/jakarta-tomcat-5.0.28/bin [root@localhost bin]# ./startup.sh The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE [ro...
[root@localhost bin]# pwd
/opt/jakarta-tomcat-5.0.28/bin
[root@localhost bin]# ./startup.sh
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
[root@localhost bin]# echo $JAVA_HOME
/opt/jkd142
[root@localhost bin]#
我装了TOMCAT5.0.28,却无法运行,提示说我没有设置JAVA_HOME环境变量,可是我的JAVA_HOME
明明已经设置了,而且是jdk而不是单纯的jre.
另,昨天装的resin.1.12 ,只能访问html叶面,jsp的叶面都无法访问,
到底是怎么回事爱,先谢谢了...
/opt/jakarta-tomcat-5.0.28/bin
[root@localhost bin]# ./startup.sh
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
[root@localhost bin]# echo $JAVA_HOME
/opt/jkd142
[root@localhost bin]#
我装了TOMCAT5.0.28,却无法运行,提示说我没有设置JAVA_HOME环境变量,可是我的JAVA_HOME
明明已经设置了,而且是jdk而不是单纯的jre.
另,昨天装的resin.1.12 ,只能访问html叶面,jsp的叶面都无法访问,
到底是怎么回事爱,先谢谢了...
|
这个就没办法了,自然是找不到这个东西的
修改成/opt/jdk142
修改成/opt/jdk142
|
/opt/jdk1.4.2要写成这样吧
|
echo $JAVA_HOME看看给你什么输出先……