日期:2014-05-20  浏览次数:20900 次

tomcat的安装问题!谢谢帮忙~~
请教:用.zip文件安装tomcat后,运行startup.bat只是一闪就结束了
在cmd中运行报错:

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least of these environment variable is needed to run this program

请问是怎么回事?怎么解决?
我已经配置了JAVA_HOME与JRE_HOME

非常感谢~~~~~~~~~


------解决方案--------------------
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 
At least of these environment variable is needed to run this program 


找不到java_home,或者jre_home

环境配的有问题撒!
------解决方案--------------------
在$CATALINA_HOME/bin中找到catalina.bat
如果是UNIX系统的话是catalina.sh


在里面有JAVA_HOME路径的设定,如果你的电脑中,
没有在PATH的设定中加入$JAVA_HOME/PATH,那么在这里就必须指定JAVA_HOME的路径
------解决方案--------------------
探讨
我仔细看了tomcat启动时的信息,好像报些错误:

1.严重:IOException ehile loading persisted sessions:java.io.EOFException
接着是一些错误信息;

2.严重:Exception loading sessions from persistent storage
接着是一些错误信息;


不知道跟这些有关没?

拜托~~~谢谢帮助!!!