In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail about the specific steps of JVM installation and Tomcat configuration, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Describe the specific steps of JVM installation and Tomcat configuration, including download, installation, configuration and so on.
JVM installation and Tomcat configuration
* step: download j2sdk and tomcat:
Go to sun official site (http://java.sun.com/j2se/1.4.2/download.html) to download j2sdk, pay attention to download WindowsOfflineInstallation version of SDK, and * download J2SE1.4.2Documentation, and then go to tomcat official site (http://www.apache.org/dist/jakarta/tomcat-4/) to download tomcat (of course, you can also download * * TOMCAT5.5)
Note: 5.0 does not seem to be able to configure the path, a little more convenient, beginners first 4.X bar!
Step 2: JVM installation and Tomcat configuration
Your j2sdk and tomcat: execute the installation program for j2sdk and tomcat, and then install it according to the default settings.
1. After installing j2sdk, you need to configure the environment variables and add the following environment variables to my computer-> Properties-> Advanced-> Environment variables-> system variables (assuming your j2sdk is installed at c:\ j2sdk1.4.2):
JAVA_HOME=c:\ j2sdk1.4.2 classpath=.;%JAVA_HOME%\ lib\ dt.jar;%JAVA_HOME%\ lib\ tools.jar; (.; must not be less, because it represents the current path) path=%JAVA_HOME%\ bin
You can then write a simple java program to test whether J2SDK has been successfully installed:
PublicclassTest {publicstaticvoidmain (Stringargs []) {System.out.println ("KelinplayingtheJAVA.");}}
Save the above program as a file named Test.java.
Then open a command prompt window, cd to your Test.java directory, and type the following command
JavacTest.java javaTest
At this point, if you see the printed Thisisatestprogram. If this sentence is not printed out, you need to check your configuration carefully.
two。 After installing Tomcat, add the following environment variables to my computer-> Properties-> Advanced-> Environment variables-> system variables (assuming your tomcat is installed at c:\ tomcat):
CATALINA_HOME=c:\ tomcat; CATALINA_BASE=c:\ tomcat
Then modify the classpath in the environment variable, and append the servlet.jar under common\ lib under the tomat installation directory to classpath. The modified classpath is as follows:
Classpath=.;%JAVA_HOME%\ lib\ dt.jar;% JAVA_HOME%\ lib\ tools.jar;% CATALINA_HOME%\ common\ lib\ servlet.jar
You can then start tomcat and visit http://localhost:8080 in IE, which means that the installation is successful if you see the welcome page of tomcat.
About JVM installation and Tomcat configuration specific steps are shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.