First, the software download
- Eclipse3.6 IDE for Java EE developers:: http://eclipse.org/downloads/
- Tomcat Eclipse Plugin,: http://www.eclipsetotale.com/tomcatPlugin.html
Eclipse version: eclipse-3.7 required Tomcat plugin version: Tomcatpluginv33.zip
Eclipse version: eclipse-4.5 required Tomcat plugin version: Tomcatpluginv331.zip
Apache-tomcat version: Apache-tomcat-7.0.63.zip
Details: Different versions of Eclipse require different tomcat plugins (download the latest version)
Second, software Installation and configuration (graphic)
1. Unzip the eclipse into a directory, such as/usr/local/eclipse.
You can see the Eclipse Installer Installer, double-click it, pop up the installation page, you can choose a variety of different languages of the development environment (including Java, C + +, Java EE, PHP, etc.):
Fourth Step: Select the installation directory
Select the installation directory for the IDE:
Fifth step: Wait for the installation to complete
After selecting the installation directory, click "Install", then we wait for the installation to be completed, we can use:
Using Eclipse
Eclipse is a Java-based extensible development platform, so before installing eclipse you need to make sure that your PC is installed JDK,JDK installed to see our Java Development environment configuration.
The first time you need to set up a working environment, you can specify the working directory, or use the default C working directory, click the OK button.
To create a project: Select File--new--java Project:
Enter a project name, such as I enter Test, then click Finish
Complete the project creation, click the small icon in the red box,
Then select the test item on the left menu and right-click--new--class
Type the name of the class, such as enter test, and then click Finish
This way you can start typing code in the code box!
2. Unzip the Tomcat plugin into the plugins directory in the Eclipse directory. Then Tomcat is configured
Right-click on the project->properties
Under ' Tomcat ' under ' General ' tab, Tick ' is a Tomcat Project ' and select the boot path to WebApp
Under ' Tomcat ' under ' Export to War Settings ' tab, enter the path and file name of the war file to export, OK, return project
Right-click on Project->tomcat project->export to the war file sets in Project Properties build War Package
Packaged successfully, see the generated war file under the specified directory!
First Glimpse java--2 (download eclipse, install the Tomcat plugin)