How to configure the Java EE ECLIPSE+TOMCAT development environment This article from the Chicken Peck Rice http://www.jizhuomi.com/, the original address: http://www.jizhuomi.com/software/357.html
Here's a detailed introduction to each step of building a Java EE development environment under Eclipse,
Environment: Win 7 + JDK 1.7 + Eclipse IDE for Java EE developers 3.7 +tomcat 6.0
First, prepare the software:
jdk:jdk-7u3-windows-i586
Ide:eclipse-jee-indigo-sr2-win32
Server: apache-tomcat-6.0.35
The software version is different, the general difference is not much.
(i) Installing and configuring the JDK
The JDK comes with a JRE and does not need to be downloaded separately.
Open the JDK installation,
Select the installation directory, next, install the JDK, ask whether to install the JRE, choose Next,
Finally ask if you want to install Java FX,
After loading, the JDK is fully installed, the JDK is configured below,
Open, computers, properties, advanced system settings, environment variables
1. New system variable java_home (JDK installation path)
C:\Program files\java\jdk1.7.0_03
2. Edit Path
Added in front:%java_home%\bin;
3. New system Variable Classpath
.; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar
Notice the third sentence, the front point,
After configuration, open cmd, enter: java-version
The following information will appear:
Java Version "1.7.0_03"
Java (TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot (TM) Client VMs (build 22.1-b02, mixed mode, sharing)
,,,
Indicates that the JDK configuration was successful,
(ii) installation of Tomcat
Proceed to the next step and then let you specify the JDK installation directory, if the default is incorrect, modify it,
Complete the installation,
In the browser, type: http://loaclhost:8080
Appear as:
(iii) Configuring Web Sever
Eclips do not need to install, decompression can be used,
Open Eclips, create a new dynamic Web project,
Now configure Tomcat, point new Runtime,
Choose Tomcat 6.0
Next, then click Browse, select the Tomcat installation directory, other default,
And then point to finish,
Create Project completion,
Create a new JSP file in the project, by default in the WebContent folder,
Add Hello to <body></body> Java ee
Then right-click in the Server window and create a new server
Add the project to the next step, then select version Tomcat 6.0, complete,
In the server window, right-click on the Tomcat server and start the service to see the Open JSP Web page.
If the following error occurs:
The reason is that port 8080 is occupied, look at the network port,
Sure enough, 8080 ports are occupied, a tomcat has been started, the process is killed,
Restart server, Normal,
So far, the development environment has been built.
(Adsbygoogle = Window.adsbygoogle | | []). push ({});
5
You may also like:
Teach you how to configure the apache+mysql+php environment in a 64-bit Win7 system
Zblog Sticky article only on the homepage, the article on the category page and the Category tab display the perfect way to modify
Introduction to Microsoft TTS Speech engine programming
Whether software engineers should focus on technology
Analysis of the possibility of iPad3 time and configuration of the market
No link recommendation [?]
Unless otherwise noted, chicken Peck rice articles are original
Reprint please mark this article address: http://www.jizhuomi.com/software/357.html
2014-9-13 16:49:24
Author: Chicken Peck Rice Category: Software development browse: 23487strbatchcount+= "spn357=357," comments: 2 This article is from the chicken peck Rice http://www.jizhuomi.com/, the original address:/HTTP Www.jizhuomi.com/software/357.html
How to configure the Java EE ECLIPSE+TOMCAT development environment