Tomcat缺少JRE_HOME变量(win7) [英] JRE_HOME variable missing with Tomcat (win7)
问题描述
我可以访问
http:// [my-IP-address]中的默认索引页: 8080
但无法访问jsp文件夹的页面,甚至没有.html文件。它给我
503服务暂时不可用。
甚至本地主机似乎都没有工作。我不记得如果Tomcat服务器需要启动或者如果mod_jk.so自动处理。当我尝试启动tomcat与startup.bat它给我的消息
JRE_HOME环境变量未正确定义
我已经从系统属性设置了环境变量,我可以编译/运行.java文件没有问题。 p>
JAVA_HOME C:\程序文件(x86)\Java\jdk1.6.0_16
JRE_HOME C:\程序文件(x86)\Java\jre6
那么这里发生了什么?我安装了Visual Studio,但否则我不能想到任何一个原因,为什么tomcat不能突然发挥作用。这是非常令人沮丧的,所以任何帮助将不胜感激。
配置路径这样
你可以输入
echo%JAVA_HOME%
echo%JRE_HOME%
然后一切都会像魅力一样工作
I installed tomcat and Apache http-servers like two weeks ago. I got it running and I was able to run the JSP-pages from another computers. I had a little pause and now that I'm trying to run the system it doesn't work. I can access the default index-page in the
http://[my-IP-address]:8080
but cannot access the jsp folder's pages, not even .html files. It gives me
503 service temporarily unavailable.
Not even the localhost seems to work.I can't recall if the Tomcat server needs to be started or if the mod_jk.so automatically handles that. When I try to start the tomcat with startup.bat it gives me the message
JRE_HOME environment variable is not defined correctly
I've set the environment variables from system properties and I could compile/run .java files without problems.
JAVA_HOME C:\Program Files (x86)\Java\jdk1.6.0_16
JRE_HOME C:\Program Files (x86)\Java\jre6
So what's going on here? I installed Visual Studio, but otherwise I cannot think of any reason why the tomcat doesn't work all of the sudden. This is very frustrating, so any help would be much appreciated.
Configure paths like this
You can check the validity of the path by typing
echo %JAVA_HOME%
echo %JRE_HOME%
and then everything will work like a charm
这篇关于Tomcat缺少JRE_HOME变量(win7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!