Tomcat6不再需要jdk支持,只需要jre(来自注册表或是JAVA_HOME变量)

Tomcat 5.5及以前的版本,我们都必须安装JDK,因为Tomcat Jasper需要使用JDK去编译jsp(翻译后的java文件),Tomcat 6的jasper在新的版本已经做了重新的设计,以下是tomcat 6官方文档的一句话:

Tomcat 6.0 uses the Eclipse JDT Java compiler for compiling JSP pages.  This means you no longer need to have the complete Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment (JRE) is sufficient.  The Eclipse JDT Java compiler is bundled with the binary Tomcat distributions.  Tomcat can also be configured to use the compiler from the JDK to compile JSPs, or any other Java compiler supported by Apache Ant.

也就是说,以后在生产机上安装tomcat的时候,不再需要去安装一个JDK了,只需要安装一个JRE就可以!原来的tomcat 5.0跟tomcat 5.5都需要JDK的支持!

 

Apache Tomcat 6.0

Tomcat Setup

http://tomcat.apache.org/tomcat-6.0-doc/setup.html

Installing Tomcat on Windows can be done easily using the Windows installer. Its interface and functionality is similar to other wizard based installers, with only a few items of interest.

 

  • Installation as a service: Tomcat will be installed as a Windows NT/2k/XP service no matter what setting is selected. Using the checkbox on the component page sets the service as "auto" startup, so that Tomcat is automatically started when Windows starts. For optimal security, the service should be run as a separate user, with reduced permissions (see the Windows Services administration tool and its documentation).
  • Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base path of a J2SE 5 JRE. (来自注册表或是JAVA_HOME变量)
  • Tray icon: When Tomcat is run as a service, there will not be any tray icon present when Tomcat is running. Note that when choosing to run Tomcat at the end of installation, the tray icon will be used even if Tomcat was installed as a service.
  • Refer to the Windows Service HOW-TO for information on how to manage Tomcat as Windows NT service


Tomcat6不再需要jdk支持,只需要jre(来自注册表或是JAVA_HOME变量)
 

你可能感兴趣的:(java,eclipse,jdk,tomcat,windows)