jdk and tomcat installation

Tomcat and JDK Installation Guide

1 JDK Installation

To run the JAVA program, you must install the JDK ( JAVA support development kit) is.

1.1   Installation

. 1 , the J2SDK installation is relatively simple, looking for "directory in the disk installation JDK Setup" folder, open can see the " jdk15.exe" file, double-click operation of this file, the JDK installation interface, as shown below:

 

Select " the I in the Accept at The Terms at The License Agreement " after click " the Next " button to bring up the following screen:

 

You can " Change Select" button path you want to install, we recommend that you use the default installation path, so that the following environment variable configuration.

2 , Click " the Next " button, the installation progress screen will appear:

 

The installation process may take several minutes, please be patient, when installed to a certain stage, another page will pop up as follows:

 

You can " Change Select" button path you want to install, we recommend that you use the default installation path, so that the following environment variable configuration. Note: If you want to select a path, select the path you selected above and the same path.

Ibid., Continue to click " the Next " button, the interface will pop up as follows:

 

This page without modifying anything, continue to click " the Next " button, pop-up interface as follows:

 

The installation process may take several minutes, please be patient. Such as the installation progress is complete, the interface will pop up installation is complete, as follows:

 

3 , click the " Finish " button to complete the JDK installation, then start configuring JDK environment variables.

1.2 JAVA environment variable configuration

Because WINDOWS default search order, first search the current directory, and then search the system directory, and then search PATH environment variable settings. You write java program in a specified directory, there is no compiler command execution, and the system directory, nor compile execute the command , so the environment variables on the inside .

Environment variables need to establish the following three : JAVA_HOME, CLASSPATH, PATH, provided specific steps are as follows:

The first step : Right-click on " My Computer " and click " Properties " :

Step two: Select the " Advanced " tab, click on the " Environment Variables " :

The third step: In the " System Variables " , set 3 property, JAVA_HOME, the PATH, the CLASSPATH ( capitalization does not matter ), If there is already then click " Edit " , does not exist, click " New " :

the fourth step:

a) JAVA_HOME to JDK installation path ( such as C: \ the Java \ JDK1.5.0) , this path includes lib , bin , JRE other text items folder (preferably this variable setting, because subsequent operation Tomcat , Eclipse so need rely on this variable);

b) Path to: (C: \ the Java \ JDK1.5.0 \ bin; C: \ the Java \ JDK1.5.0 \ bin) This path enables the system to identify any path java command ;

c) CLASSPATH to: (; C:. \ the Java \ jdk1.5.0 \ lib \ tools.jar; C: \ the Java \ jdk1.5.0 \ lib \ dt.jar) ( to be added . ; represents the current path ) This path java to load classes (class or lib) paths, only class classpath in, java command can identify ;

Step Five: Click the bottom left corner of the desktop " start " - > " Run " , enter "cmd" :

Step Six: Enter the command "the Java -version" , graph screen, indicating successful configuration environment variable appears next:

 

At this point, the JDK installation, configuration is complete.

2   application server Tomcat is installed

2.1 Installation

1.  Looking at the installation disk directory " Tomcat Setup" folder, open can see the " Jakarta Tomcat--5.5.7.exe" file, double-click operation of this file, the Tomcat installation interface, as shown below:

 

2. Click the "Next" button to continue with the installation, the following screen appears:

 

3, click "I Agree" button, pop-up interface as follows:

 

4, do not modify any of the content, continue to click "Next" button to bring up the following screen:

 

You can click to select the path you want to install the "Browse", recommends using the default installation path.

5. After selecting the path, continue to click "Next" button, pop-up interface as follows:

 

The default port 8080 to 8088, because the 8080 port is occupied by Oracle. Set the user name, password (can be empty), continue to click "Next" button, the following interface:

 

This is automatically find the installed path J2SDK, so do not be modified.

6 , click on ' the Install ' installation, after installation, click ' Finish ' to complete the installation.

7 , verify successful installation, running tomcat , in IE input HTTP: / / localhost: 8088 , the next screen appears FIG described tomcat installation was successful:

 

At this point, Tomcat installation is complete, then return to the "Hangzhou Civil Affairs Bureau information integration and decision support platform _ Installation and Configuration Installation Manual" to continue the platform, so that you can successfully use this platform.

 

. 3  the Tomcat . 6 and compatibility configuration jdk6

1 , open the tomcat dialog

 

 

2 , open the tomcat dialog

In java options by adding the following statement in.

-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

Guess you like

Origin www.cnblogs.com/tongcc/p/11023323.html