The first thing to do before developing a Java Web environment is to build a development environment, build a successful development environment, and then test the entire development environment by writing a simple JSP program that can be published to the Tomcat application server.
1.Java Configuration
2.Tomcat Configuration
3.Eclipse Configuration
Tomcat Configuration
1.
Download tomcat7.0;:http://tomcat.apache.org/download-70.cgi; Download the appropriate version according to your system.
2.
Unzip the downloaded package to a hard drive root directory, I unzip to the D packing directory.
3.
To configure the Tomcat environment variable:
Right-click My Computer---Properties-----advanced system Settings---environment variables
1, new user variable name: catalina_base, variable value: D:\apache-tomcat-7.0.54
2, new user variable name: catalina_home, variable value: D:\apache-tomcat-7.0.35
3, open path, add variable value:%catalina_home%\lib;%catalina_home%\bin
4.
To start the Tomcat service:
Methods two kinds:
1, method One: Enter the command under the cmd command: Startup, the following dialog box appears, indicating that the service started successfully.
2, Method Two: Enter the command under the cmd command: Catalina Run, the following dialog box appears, indicating that the service started successfully.
5.
Test Tomcat:
Open the browser, enter http://localhost:8080 carriage return in the address bar, and if you see a JSP page with Tomcat, your Tomcat has been built successfully.
Eclipse Configuration
1. Download eclipse3.7_win7_64-bit decompression version, enter the official website http://www.eclipse.org/downloads/; Click donwload to enter the download page. The download on the two charts can be entered on the download page:
2. Select the for Java EE developers version below, and note the issue: choose 64-bit and 32-bit editions based on your system version to download
3. After downloading, you will get a zip file, unzip the file to any directory on your computer, then open this directory, there is a Eclipse.exe file, double-click this file, you can start your eclipse
4. During the startup process, the program will display a Workspace dialog box, the workspace is used to store your project files, you can use the program default, click OK, you can also re-select a folder to store your files, then click Browse, re-specify your project file storage directory:
5.
Configure the Association Tomcata. Click "Window"---"Preferences"---"Server"---"Runtime environment"
6.
Click "ADD"--Select the corresponding Tomcat version---"Next"---"Browse. "Select the path of Tomcat decompression---" OK "------" Finish "
7. So far, the Java EE Development environment has been built, now you can build a Web engineering test it
WIN7 system Java EE (java+tomcat7+eclipse) environment with