After downloading the JDK installation files for the Windows platform, the installation steps are as follows.
1), run the installation files, here has been jdk-7u80-windows-i586.exe for example to hold the installation.
2), in the "Customize Installation" dialog can select the installed results components, and then click the "Change" button to change the JDK installation path (the installation path is D:\Java\jdk1.7.0_80), click the "Next" button.
3), click the "Next" button to start the JDK installation. In the installation process, the JRE's Customize Installation dialog box pops up, from which you can select the results component of the JRE. Then click the "Change" button to change the installation path of the JRE (the installation path is d:\Java\jre7). Click the "Next" button, the installation leader will inherit the completion of the installation process.
4), Description: JRE is all called Java Runtime Environment, it is Java runtime, the main serious Java measures to run, and the JDK includes Java measures to develop the need for compiling, debugging and other things, but also includes the JDK source code. If you simply run Java measures, install the JRE directly.
2. Setting the condition variable
The steps for setting a condition variable in a Windows system are as follows:
1), right-click on the "My Computer" icon, select "Properties" Call, select "Advanced" tab in the Pop-up dialog, then click the "Condition variable" button, the "Condition variable" dialog box will appear. Click the "New" button in the "System variables" column to build the new system variable.
In "System variables", configure the 3 properties Java_home, CLASSPATH, Path (do not distinguish between the size of the write), if it already exists then click "Edit", do not exist then click "New";
2), Java_home indicates the JDK installation path, is just now installation of the path selected D:\JAVA\JDK1.7.0_80, this path includes Lib,bin,jre folder (this variable configuration, because the future operation Tomcat,eclipse and so need to follow * this variable);
3), path so that the system can be in any path to identify the Java appeal, here, to note that the path should be the original, do not create new, find path, click "Edit", at the top of the value to add the following statement. If the path variable is surrounded, there will be some foundation calls that would result in the cmd being found. %java_home%/bin;%java_home%/jre/bin;
4), Classpath is the Java load Class (classes or Lib) path, only the class in Classpath, Java calls for talent recognition, set as:
.; %java_home%/lib/dt.jar;%java_home%/lib/tools.jar (to Add. Hint Current path)
%java_home% is a reference to the previously specified java_home;
5), review the installation settings are correct
C:\Documents and Settings\administrator>java-version
Java Version "1.7.0_80"
Java (TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot (TM) Client VMs (build 24.80-B11, mixed mode, sharing)
Second, Apache-tomcat installation
Download the installation file for Apache-tomcat under Windows
1, run the installation files, we have apache-tomcat-7.0.50.exe here, directly select Next
2, select the path when the choice of D:\Java\Tomcat 7.0
3, meet: 8080/test can open his test page.
Article posted: http://www.fu57.com/news/fwqyj/454.shtml
Windows System Installation Apache-tomacat