Eclipse Configuration Tomcat

Source: Internet
Author: User

First, let's take a look at the prep tool

Jdk:jdk-1_5_0_05-windows-i586-p.exe

Eclipse:eclipse-sdk-3.1.2-win32.zip

Tomcat:jakarta-tomcat-5.0.28.exe

Tomcat

Plugin: Tomcatpluginv31.zip

When all this is ready, let's install the configuration one item at a time

Method/Step
  1. JDK installation  
    The installation of the JDK only needs to be installed as prompted. You can choose your preferred installation path halfway. After the
    is installed, there is a jdk1.5.0_05 and a jre1.5.0_05 folder.  
    then start setting environment variables. Right-click My Computer--Properties--advanced--environment variables. Here you can
    choose to add in the system variable so that all users on this machine can use this environment variable.  
     
    Add classpath:    .;D: \ Program  files\java\jdk1.5.0_0\lib\tools.jar;d:\program Files\java\jdk1.5.0_05\lib\dt.jar     
    Note that there is a "." In the front, and don't forget. The path in this will be replaced by your own installation path
    diameter. &NBSP
    Add Java_home:     D:\Program files\java\jdk1.5.0_05 also replace with your own path

     

  2. tomcat will be installed according to the installation instructions. You can select a port halfway. The default is 8080. You can change it to 80 so it's convenient to enter the address later. However, 80 ports are more prone to conflict. So you don't have to change it here. (You can also reset the port number in the configuration file after installation, please refer to the relevant data) add Catalina_home:d:\program Files\tomcat 5.0    in the environment variable;
    Tomcat_home:d:\ Program Files\tomcat 5.0    
    Tomcat_base:d:\program files\tomcat 5.0  

  3. added in classpath:
    D:\Program files\tomcat 5.0\common\lib\servlet-api.jar   
    After all this has been done, open your browser and enter http://localhost:8080

  4. Installation of Eclipse
    Unzip the eclipse to the destination folder. Mine is D:\Program files\eclipse. You can then start Eclipse.exe.
    There are a few other articles you can use to see how eclipse is used.

  5. Installation of the Tomcat plugin
    Close Eclipse. Unzip the tomcatpluginv31.zip and copy the extracted folder com.sysdeo.eclipse.tomcat_3.1.0 to D:\Program Files\eclipse\plugins.



  6. Re-open Eclipse. Then find the java--installed JREs on the left side of the window--prefereces and select Jdk1.5.0_05
    Then find Tomcat on the left, select the 5.x version in the Tomcat root directory, enter the address in Tomcat_home: D:\Program Files\tomcat 5.0

Eclipse Configuration Tomcat

Related Article

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.