Install eclipse and plug-ins

Source: Internet
Author: User
Tags tld apache tomcat
Install eclipse and plug-ins

Reference from http://www.donews.net/torres/archive/2004/09/03/87733.aspx
I. Installation preparation

Before installation, you should prepare the following software:

Software: j2sdk-1_4_2_04-windows-i586-p.exe
Version: 1.4.2 _ 04
Download: http://java.sun.com/j2se/1.4.2/download.html

Software: jakarta-tomcat-5.0.28.exe
Version: 5.0.28
Download: http://www.apache.org/dist/jakarta/

Software: jakarta-struts-1.1.zip
Version: 1.1
Download: http://www.apache.org/dist/jakarta/struts/

Software: eclipse-SDK-2.1.3-win32.zip
Version: 2.1.3
Download: http://www.eclipse.org/downloads/index.php
Ftp://download2.eclipse.org/R-2.1.1-200306271545/eclipse-SDK-2.1.1-win32.zip
Note: the latest version of eclipse is eclipse3.0.

Software: eclipse2.1.1-SDK-win-LanguagePackFeature.zip
Version: 2.1.1
Download: http://download2.eclipse.org/downloads/drops/
L-2.1.x % 20translations-2003070000000
Eclipse2.1.1-SDK-win-LanguagePackFeature.zip
Note: This version can only be Chinese eclipse2.1.3 or earlier

Software: tomcatplugin
Version: 2.2.1
Download: http://www.sysdeo.com/eclipse/tomcatPlugin.html

Software: lomboz
Version: 2.1.3
Download: http://www.objectlearn.com/index.jsp
Software: easystruts
Version: 0.6.4
Download: http://sourceforge.net/projects/easystruts


If you are looking for other Eclipse plug-ins, you can go to the following site:
Http://www.eclipse-plugins.info

Ii. JDK Installation

1. Install J2SE-SDK to C:/j2sdk1.4.2 _ 04

Some directories are structured as follows:

C:/j2sdk1.4.2 _ 04/bin

C:/j2sdk1.4.2 _ 04/lib

C:/j2sdk1.4.2 _ 04/JRE

...

2. Configure the environment variables as follows:

Java_home = C:/j2sdk1.4.2 _ 04

Path = % PATH %; C:/j2sdk1.4.2 _ 04/bin

Classpath = .; % java_home %/lib/DT. jar; % java_home %/lib/tools. jar; % tomcat_home %/common/lib/servlet-api.jar; % tomcat_home %/common/lib/jsp-api.jar

Iii. tomcat installation

1.install jakarta-tomcat-5.0.28.exe to C:/tomcat 5.0

Some directories are structured as follows:

C:/tomcat 5.0/bin

C:/tomcat 5.0/Conf

C:/tomcat 5.0/webapps

...

2. Configure the environment variables as follows:

Catalina_home = C:/tomcat 5.0.
Tomcat_home = C:/tomcat 5.0

Iv. Struts Installation

1.decompress jakarta-struts-1.1.zip to C:/jakarta-struts-1.1

Some directories are structured as follows:

C:/jakarta-struts-1.1/lib

C:/jakarta-struts-1.1/webapps

...

V. Install eclipse

1.decompress eclipse-sdk-2.1.3-win32.zip to D:/eclipse

Some directories are structured as follows:

D:/Eclipse/Features

D:/Eclipse/plugins

...

2. Start eclipse to see if the installation is successful.

If the startup fails, check whether JRE is installed.

3. Start eclipse and choose windows> preferences.
In the left-side tree, click expand Java and select installed jres,

If installed jres is as follows:

JRE type: Standard VM
Name: j2re1.4.2 _ 04
Location: C:/j2sdk1.4.2 _ 04/JRE

Vi. Localization of eclipse

1.decompress eclipse2.1.2.1-sdk-win32-unzip agepackfeature.zip
To D:/eclipse

Directory Name eclipse2.1.2.1-SDK-win32-LanguagePackFeature
Change to eclipse2.1.2.1language.

Some directories are structured as follows:

D:/Eclipse/eclipse2.1.2.1language/Eclipse/Features

D:/Eclipse/eclipse2.1.2.1language/Eclipse/plugins

...

2. Create a folder links under E:/eclipse to make the folder links
Same as the folder eclipse2.1.2.1language

3. Create a file under D:/Eclipse/links, and retrieve the file name,
We name it language. Link. Open this file,

Add Path = D: // eclipse // eclipse2.1.2.1language

4. Start eclipse To see if localization is successful,
If it fails, check the configuration information in the language. Link file.
Path = D: // eclipse // eclipse2.1.2.1language
Is the installation path of eclipse2.1.2.1language consistent with that of the Chinese folder?

7. Install tomcatplugin

1.decompress tomcatpluginv221.zip

2. Unzip the directory atatpluginv221
Copy the com. sysdeo. Eclipse. tomcat_2.2.1 folder to eclipse for installation.
Directory, that is, D:/Eclipse/plugins

3. Start eclipse

4. After startup, you will see a drop-down tomcat in your menu,
Three Tomcat cat charts are added to the shortcut bar,
Click the window> Custom perspective, expand "Others" in the tree structure, and select "Tomcat"

5. Click the window> preferences

Click tomcat in the tree on the left,
Set tomcat version to version 5.x
Set tomcat-home to C:/tomcat 5.0
Set perspective to switch when Tomcat is started to Java
 
In the left-side tree, choose Tomcat> JVM setting and set JRE to j2sdk1.4.2.
In "Tomcat" sub-options "JVM Settings"-> "classpath,
Add JAR/zip. The value is java_home/lib/tools. jar.
This is used to compile JSP files.
Set the classpath variable tomcat_home for the project's classpath reference.
To complete this task, select the "Java" option in the same pop-up menu as Step 5,
Then select the "classpath variables" sub-option,
And add a new variable "tomcat_home" with the path C:/tomcat 5.0.

Make sure that the "Tomcat" menu and three toolbar buttons are available. Till now,
We should see a "Tomcat" menu and three Tomcat toolbar in the Java view.
Button. If you do not see the content, go back to the "window" menu,
Select customize perspective... to open the option tree,
Select "other" and select the "Tomcat" sub-option.

Click application OK.

6. Click the shortcut button "start Tomcat" to start Tomcat.

8. lomboz Installation

1.decompress lomboz.213.zip

2. Unzip the folder com. objectlearn. jdt. J2EE under the lomboz.213/Plugins directory.
And com. objectlearn. jdt. J2EE. editors are copied to Plugins in the eclipse installation directory.
Directory, that is, D:/Eclipse/plugins

3. Start eclipse

4. Click the window> preferences

Click lomboz in the left Tree and set JDK tools. jar
C:/j2sdk1.4.2 _ 04/lib/tools. Jar

In the left-side tree, click lomboz-> server definitions,
Set server type to Apache Tomcat v5.0.x

Set Application Server Directory to C:/tomcat 5.0
Set classpath variable name to tomcat_home

Set classpath variable to C:/tomcat 5.0.

Click confirm application.

9. Install easystruts

1.decompress org.easystruts.eclipse_0.6.4.zip

2. Unzip the folder org. easystruts. eclipse_0.6.4.
Copy com. Cross. easystruts. eclipse_0.6.4 to the plug-ins in the eclipse installation directory.
Directory, that is, D:/Eclipse/plugins

3. Start eclipse

4. Click the window> preferences

Click Easy struts in the tree on the left and select struts1.1.

Add jres:

Struts. jar-C:/jakarta-struts-1.1/lib/struts. Jar

Add TLDs as follows:
Struts-tiles.tld-C:/jakarta-struts-1.1/lib/struts-tiles.tld

Struts-template.tld-C:/jakarta-struts-1.1/lib/struts-template.tld

Struts-nested.tld-C:/jakarta-struts-1.1/lib/struts-nested.tld

Struts-logic.tld-C:/jakarta-struts-1.1/lib/struts-logic.tld

Struts-html.tld-C:/jakarta-struts-1.1/lib/struts-html.tld

Struts-bean.tld-C:/jakarta-struts-1.1/lib/struts-bean.tld

Click confirm application.
So far, all the required plug-ins have been installed. Next time we will detail how to use eclipse
To develop struts applications

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.