Before developing a Java Web environment, the first thing you need to do is to build a development environment. The development environment is successfully built. Next is to test the entire development environment. You can write a simple JSP program and publish it to the Tomcat application server to run.
Tools/Raw Materials:
JDK-8-windows-i586
Tomcat-7.0.54
Eclipse
WIndos7
Java configuration:
First, download and install the JDK installation package, and download the address http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. Download the corresponding version according to your operating system.
Double-click the JDK installation package and click Next
To change the JDK installation path, it is generally not installed on the C drive, and you can change the installation letters on other drives. Click the "Change" button to select the relevant path.
Click "Next".
Change the JRE installation path and keep it in the same path as the JDK. Click the "Change" button to select the installation path.
Click "Next"
After the installation is complete, click Close.
Configure Java environment variables:
Right-click [My Computer]---[Properties]----[Advanced System Settings]---[Environment Variables]
Configuration: JAVA_HOME:
Select [New System Variable]--The "New User Variable" dialog box pops up, enter "JAVA_HOME" in the "Variable Name" text box, enter the installation path of JDK (the folder path in step 5) in the "Variable Value" text box, click the "OK" button,
Configuration: PATH variable value:
View the PATH variable in the "System Variables" option area. If it does not exist, create a new variable PATH. Otherwise, select the variable, click the "Edit" button, and add "%JAVA_HOME%/bin at the start position of the "Variable Value" text box; click the OK button
Configure the CLASS_PATH variable value:
View the CLASSPATH variable in the System Variables option area. If it does not exist, create a new variable CLASSPATH. Otherwise, select the variable, click the Edit button, and add ".;%JAVA_HOME%/lib/dt.jar;" at the beginning of the Variable Value text box.
Note: Don't throw away the ".;" in front
After configuring above, click OK. Test whether the configuration of the environment variable is successful or not. Enter "JAVAC" in the DOS command line window, and output the help information, which means the configuration is correct.
The above is the previous article of the JavaEE environment configuration tutorial for WIN7 system. I hope it will be helpful to everyone's learning, and I hope everyone will support Wulin.com more.