找到你要的答案

Q:Setting up Tomcat through the Cmd line

Q:设置Tomcat通过命令行

I am presently trying to get tomcat to run on my computer for a servlet application. If i click the startup shell then the cmd line pops up then disappears. i tried to set up the Environmental variable with the lineJAVA_HOME=c:\Program Files\Java\JDK1.8.0_45 and JRE_HOME=c:\Program Files\Java\JDK1.8.0_45 and anytime i try to run startup i get the error:

The JRE_HOME environment variable is not defined correctly This environment variable is needed to run the program

I have read through the tutorials and do not understand them, so if im missing something obvious please explain it simply

我现在想让tomcat运行在我的电脑一个servlet的应用。如果我点击启动shell然后CMD线弹出,然后消失。我试着用linejava_home = C设置环境变量:\程序文件\ \ jdk1.8.0_45 java和jre_home = C:\程序文件\ \ jdk1.8.0_45 java,我尝试运行启动我的错误:

The JRE_HOME environment variable is not defined correctly This environment variable is needed to run the program

我已经阅读了教程,不理解它们,所以如果我遗漏了一些显而易见的东西,请简单解释一下

answer1: 回答1:

JRE_HOME is jre's path. Under \Java folder, you'll see jre7 probably. Copy its path to JRE_HOME section in environment variables.

jre_home是JRE的路径。“java”文件夹下,你会看到jre7可能。复制它的路径jre_home环境变量部分。

java  tomcat  servlets  cmd