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.
Tools/raw Materials:
jdk-8-windows-i586
Tomcat-7.0.54
Eclipse
WIndos7
Java configuration:
First download the installation JDK installation package, download the address http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. Download the appropriate version based on your operating system.
Double-click on the JDK installation package to next
Change the JDK installation path, generally not installed in C disk, you can change the installation of other letter. Click the "Change" button to select the relevant path.
Click "Next".
Change the JRE installation path and keep the JDK under one path. Click the "Change" button to select the installation path.
Click "Next"
When you have finished loading, click Close.
To configure Java environment variables:
Right-click My Computer---Properties-----advanced system Settings---environment variables
Configuration: Java_home:
Select New System Variable--pops up the new User Variable dialog box, enters "Java_home" in the Variable name text box, enters the JDK installation path (the folder path for step 5) in the Variable Value text box, and clicks the OK button.
Configuration: Path Variable value:
View the path variable in the System Variables option area, or if it does not, create a new path, or select the variable, click the Edit button, and add the%java_home%\bin at the beginning of the variable value text box; Click OK button
To configure the Class_path variable value:
View the CLASSPATH variable in the System Variables option area, or if it does not, create a new variable classpath, or select the variable, click the Edit button, and add the starting position of the variable value text box.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; ".
Note: do not throw away the front ".;"
After configuring, click OK. Test environment variables are configured successfully or not. Enter "JAVAC" in the DOS command Line window, and the output Help information is configured correctly.
The above is the WIN7 system Java EE Environment Configuration tutorial in the previous chapter, I hope to help you learn, but also hope that we support the cloud habitat community.