本文介绍了JRE_HOME变量,Tomcat的缺失(WIN7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Tomcat和Apache HTTP的服务器就像两个星期前。我得到它运行,我是能够运行从另一台计算机的JSP的页面。我有一个小停顿,现在,我试图运行它不工作的系统。
 我可以访问默认索引页面

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

但无法访问JSP文件夹的网页,甚至没有.html文件。它给了我

but cannot access the jsp folder's pages, not even .html files. It gives me

  503 service temporarily unavailable.

甚至不是本地主机似乎干活如果Tomcat服务器需要启动或如果mod_jk.so自动处理不记得。当我尝试使用的startup.bat启动Tomcat它给我的消息

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

我已经从系统属性设置环境变量,我可以编译/运行.java文件没有问题。

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

那么是什么回事?我安装了Visual Studio,但除此之外我想不出任何理由tomcat的不起作用所有的突然。这是非常令人沮丧,所以任何帮助将非常AP preciated。

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.

推荐答案

配置这样的路径

您可以通过键入检查路径的有效性

You can check the validity of the path by typing

回声%JAVA_HOME%

echo %JAVA_HOME%

回声%JRE_HOME%

echo %JRE_HOME%

和那么一切都将工作就像一个魅力

and then everything will work like a charm

这篇关于JRE_HOME变量,Tomcat的缺失(WIN7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 00:22