Technical articles - base environment to build

Technical articles - base environment to build (server)

A, the JDK install and test

Install JDK installation directory selected during the installation process will be twice the installation prompts. The first is to install jdk, the second is to install jre. It recommended that two different files are installed in the same folder java folder. (Can not be installed in the root folder of java, jdk and jre installed in the same folder to be wrong)

As shown below

 

 

1: jdk installation directory chosen at random just before the default installation directory \ java directory can be modified

2: Install the jre → Change → \ java directory before same and can be installed jdk directory

Note: If there is no installation directory requirements, can be all the default settings. No need to make any changes, two were directly click Next.

 

 

 

 

 

Installing the computer configuration environment variable JDK properties → → → → Advanced Settings Advanced System Environment Variables

 

 

 

System Variables → New JAVA_HOME variable.

Fill in the value of the variable installation directory of the jdk (I was E: \ Java \ jdk1.7.0)

System Variables → find → Path variable editor

In the last input value of the variable % JAVA_HOME% \ bin;% JAVA_HOME % \ jre \ bin;

(Note that the original Path variable value has no end; number, if not, the first input; number enter the code above)

 

 

System Variables → New CLASSPATH variable

Fill in the value of the variable   ;.% JAVA_HOME% \ lib; % JAVA_HOME% \ lib \ tools.jar ( Note that the preceding bit)

System variable configuration is completed

 

 

Verify the configuration is successful run cmd enter java -version (space between java and -version)

If as shown in FIG display version information of the successful installation and configuration instructions.

 

 

Two, TOMCAT installation and testing

The first step in the right mouse button Computer -> Properties -> Advanced System Settings, go after, click the environment variable, as shown below:

 

The second step starts configuration tomcat environment variable, the new variable name CATALINA_BASE system, the value tomcat installation path, as shown below:

 

 

Step New System Variable CATALINA_HOME, the tomcat installation path value, as shown below:

 

 

 

The fourth step the system variables path, add "% CATALINA_HOME% \ lib;% CATALINA_HOME% \ bin" in which the value, as shown below:

 

 

 

After the fifth step Click OK to save the configuration system variables, press win + R key to open the Run, enter cmd, click OK, enter "startup" in the command line to start the tomcat service, the successful launch of environmental variables and configuration is successful, as shown below below:

 


The sixth step we enter in the browser "localhost: 8080", the following interface, on behalf of tomcat environment to build successful, as shown below:

 

 

Guess you like

Origin www.cnblogs.com/bkygkx/p/11422945.html