In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install JDK and Tomcat under windows". The content in the article is simple and clear, easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install JDK and Tomcat under windows".
First, install JDK
1. Installation
The current maximum version of JDK is 1.7. Download and run the JDK 1.7 installer jdk-7u25-windows-i586.exe, and install it directly to disk C (it can also be on other disks, but the file name must be in English). Other options remain default during installation. Generate the JDK directory and the JRE directory respectively:
The jdk and jre in the picture above are matched.
2. Configure environment variables
Configure system environment variables: right-click on my computer-> Properties-> Advanced system Settings-> Advanced-> Environment variables.
1) create a new system variable:
JAVA_HOME:C:\ jdk1.7.0_25
JRE_HOME: C:\ jre7
(the red part is the jdk installation path. If you want to use other jdk versions, just modify this path! The preceding "JAVA_HOME" can also be named at will, usually in uppercase)
2) add Path path
CLASSPATH:.%JAVA_HOME%\ lib;%JRE_HOME%\ lib; (Note: the first dot indicates the current directory and cannot be omitted; nor can the last semicolon be omitted)
(the JAVA_HOME in the configuration should be the same as the one newly created above. The purpose of setting this variable is that the system will start every time, instead of manual maintenance.)
At this point, the JDK is installed. Look at the version of jdk
Open cmd and enter the command: java-version
Second, install Tomcat
1. Installation
Download the Tomcat server apache-tomcat-7.0.42-windows-x86.zip and extract it to the root directory of C disk: C:\ apache-tomcat-7.0.42 (the path is arbitrary, if the English name is).
2. Configure environment variables
1) create a new system variable:
CATALINA_HOME:C:\ apache-tomcat-7.0.42
2) add Path path
CLASSPATH:.%JAVA_HOME%\ lib;%JRE_HOME%\ lib;%CATALINA_HOME%\ lib
3) Test Tomcat
Run CMD, enter the directory C:\ apache-tomcat-7.0.42\ bin, and run startup:
Enter: http://localhost:8080 in the browser URL address bar to display the Tomcat information page to indicate that the configuration is successful:
Thank you for your reading, the above is the content of "how to install JDK and Tomcat under windows". After the study of this article, I believe you have a deeper understanding of how to install JDK and Tomcat under windows. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.