0

我已经安装jdk1.6.0_04 and I have also install apache-tomcat-8.0.9 并且我已经设置了路径C:\Program Files (x86)\Java\jdk1.6.0_04\bin; 和 CLASSPATH appache tomcat 服务器 C:\Program Files (x86)\apache-tomcat-8.0.9\lib\servlet-api.jar;

但是当我尝试在网络浏览器上打开 apache Tomcat 服务器时它仍然无法正常工作网页不可用

请指导我实现目标的正确方法。

4

4 回答 4

2

设置 JAVA_HOME="C:\Program Files (x86)\Java\jdk1.6.0_04" 和 CATALINA_HOME="C:\Program Files (x86)\apache-tomcat-8.0.9" 比转到 %CATALINA_HOME%\bin 和运行startup.bat %CATALINA_HOME%\conf\server.xml 中的所有简单配置

于 2014-07-25T11:48:01.117 回答
1

You need jdk1.7 + to run tomcat 8, if you are using jdk1.6, you need tomcat 7-.
See this: http://tomcat.apache.org/whichversion.html

This make me remember back in collage, it took me 2 days to finish jdk/tomcat hello world, :) , what a good time it is.

Just make sure, open a command line, input java --version to check whether you jdk is configured well, and which version it is in use. Just to be sure, in some case you need to re-login or reboot to make your new configured jdk work.

Believe me, if you configured jdk well, you don't need to change anything of the tomcat, just unzip it, and start it, it would work, unless the port 8080 is already taken.

于 2014-07-25T11:52:55.820 回答
0
  1. 设置 CATALINE_HOME = 你的 tomcat 位置
  2. JAVA_HOME = 你的 java(版本 6 或 7)。
  3. Path = 相同的 JAVA_HOME Java 版本路径 til bin。
  4. 在最后运行startup.bat
于 2014-07-25T11:57:08.583 回答
0

如您所说,转到您的情况下的apache tomcat的安装文件夹

C:\Program Files (x86)\apache-tomcat-8.0.9\bin并双击startup.bat

然后转到网络浏览器并键入http://localhost:8080应该可以完成的工作

于 2014-07-25T11:53:28.777 回答