Tomcat 5.0.28 Installation notes

Source: Internet
Author: User
Click to enter my new blog: http://www.sofee.cn/blog/

I. Preparations

Prepare j2sdk and tomcat before installation. If you have installed j2sdk, you only need tomcat.

The software used by the author is as follows:

  • Windows 2000 advance SERVER + SP4
  • J2sdk v1.4.2 _ 04-http://java.sun.com/j2se/1.4.2/download.html
  • Tomcat v5.0.28-http://apache.linuxforum.net/dist/jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.exe

Ii. Install j2sdk

The installation is simple. You only need to double-click the downloaded file and install it in the D:/j2sdk1.4.2 _ 04 directory.

Set environment variables as follows:

Right-click "my computer" = "property =" Advanced = "environment variable =" New...

Variable name: java_home
Variable value: D:/j2sdk1.4.2 _ 04

3. install Tomcat

RunJakarta-tomcat-5.0.28.exeFollow the prompts to install the service. I have selected the service here to run it as a Windows service.

If you want to change the installation path, you can perform this step, and install it on D:/tomcat 5.0.

Set the port used by Tomcat and the user name and password on the Web management interface. Make sure that the port is not occupied by other programs.

Select the installation path of j2sdk. The installer will automatically search for it. If it is not displayed correctly, you can manually modify it. I will change it to D:/j2sdk1.4.2 _ 04.

Next, copy the file. After the installation is successful, the program will prompt you to start Tomcat and view the README document.

After Tomcat is started normally, the icon is loaded in the system bar.

Right-click the icon to view some settings.

Click Configure... or double-click the icon.Startup type is set to Automatic startup, so Tomcat runs automatically after each boot.
In addition, you can click start or stop to control Tomcat running.

Iv. Test

Now that the installation and configuration are complete, enter http: // localhost: 8080 in the browser to view the Tomcat information.

V. Remarks

  • Because Tomcat is installed as a service, the catalina_home environment variable is not set. If the reader does not follow this method, set a system environment variable in the same way as j2sdk.
    Variable name: catalina_home
    Variable value: D:/tomcat 5.0.
    Add another environment variable.
    Variable name: classpath
    Variable value :.; % java_home %/lib/DT. jar; % java_home %/lib/tool. jar; % java_home %/lib/tools. jar; % catalina_home %/common/lib/servlet-api.jar; % catalina_home %/common/lib/jsp-api.jar
  • This is also because of service installation. The following error message occurs when I execute some programs:
    Unable to find a javac compiler; com. Sun. Tools. javac. Main is not on the classpath. Perhaps java_home does not point to the JDK
    The error message is that the java_home environment variable has not been set, and the reader may have encountered this problem. If this environment variable is set, an error occurs when the service is started, however, enter D:/tomcat 5.0/bin/startup in the command line. BAT can be started but run. I found the reason why it was not read from the java_home environment variable during startup in the service, but defined this environment variable in the configuration, so I added a sentence in Java options:-djava. home = D:/j2sdk1.4.2 _ 04. it is OK to start Tomcat again. refer:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.