Before learning Java, we all have an essential step, install JDK and Tomcat, installation is also easy, but each time the environment configuration is always to check the data to configure, today will be the configuration of the steps to summarize, to facilitate the next use.
One, JDK configuration
1. Right-click My Computer Properties--Advanced system settings--environment variables--New system variables
Variable name: java_home
Value: For the Java installation directory, mine is: D:\Program files\java\jdk1.8.0_45
2, look for the system variable path, add after path: %java_home%\bin;%java_home%\jre\bin; need to pay attention to the seal number
3, new classpath in system variable, value: ;%java_home%\lib;%java_home%\lib\tools.jar
after the configuration, the JDK is configured, then check that the JDK is actually configured successfully
4, check
win+r--cmd--java-version
description The JDK configuration was successful.
two, tomcat configuration
I am here to install the free version, first unzip the package to the directory to be installed: D:\apache-tomcat-5.5.17
1, new variable name: catalina_base value for tomcat installation path: D:\apache-tomcat-5.5.17
2, new variable name: catalina_home value or the installation path for Tomcat: d:\apache-tomcat-5.5.17
3, add a value to the PATH variable: 3, open path, add variable value:
;%catalina_home%\lib;%catalina_home%\bin
Span style= "White-space:pre" > after the above steps, the Tomcat configuration step is complete, then verify that the configuration is successful
4, enter startup in the CMD window the following interface surface configuration succeeded:
In addition, the Tomcat default port number is 8080, through the http://localhost:8080 address can also see whether the configuration is successful!
above is all the steps for configuring JDK and Tomcat. For reference only!
3, open path, add variable value:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Java Learning prerequisites for JDK and Tomcat configuration