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
-
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
-
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
-
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
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.
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.
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