Java Learning prerequisites for JDK and Tomcat configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.