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 to run on the Tomcat application server.
This article focuses on the tomcat configuration process, the details are as follows
1. Download Tomcat7.0: http://tomcat.apache.org/download-70.cgi; Download the corresponding version according to your system.
2. Download the compressed package, extract to a hard disk root directory, I extracted to the D-packing directory.
3. Configure Tomcat Environment variables:
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. Start Tomcat Service:
Two kinds of methods:
1. Method One: in the cmd command to enter the command: Startup, the following dialog box appears, indicating that the service started successfully.
2. Method Two: in the cmd command to enter the 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 Tomcat's own JSP page, 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 graphs in the following figure are available on the download page:
2. The following selection for Java EE Developers version, note a problem: According to your system version select 64-bit and 32-bit version to download
3. After downloading, you will get a zip file, extract this file to any directory on your computer, and then open the directory, which has a Eclipse.exe file, double-click the file, you can start your eclipse
4. The program will display a Workspace dialog box during the startup process, workspace to store your project files, you can use the program default, click OK, you can also select a folder to store your files, then click Browse, reassign your project files stored in the directory:
5. Configure the associated tomcata. Click "Window"---"Preferences"---"Server"---"Runtime environment"
6. Click "ADD"--Select the corresponding Tomcat version---"Next"---"Browse ... "Select the path that tomcat unzipped---" OK "------" Finish "
7. So far, the Java EE Development environment has been built up, you can now build a Web engineering test.
You can combine the previous article to learn: WIN7 system java EE (java+tomcat7+eclipse) environment Configuration tutorial (i)
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.