In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.