Detailed analysis of Java 8 + Tomcat 9 installation methods in Win10 system, win10java8

Source: Internet
Author: User

Detailed analysis of Java 8 + Tomcat 9 installation methods in Win10 system, win10java8

Detailed analysis of the Java 8 + Tomcat 9 Installation Method in Win10 system.

Install Java

Download from the official website.

Next, let's take a look at it step by step.

Run the downloaded exe program

Set jdk path

Then set the jre path.

Wait until installation is complete

Right-click This computerEnter Attribute

Click Advanced System settings

Click Environment Variable

ThenJava environment variable three connectionsNow.

Add JAVA_HOMEAdd PATHAdd CLASSPATH

Copy the corresponding jdk path to the JAVA_HOME environment variable

PATH and CLASSPATH are fixed

Then

 


Check whether the installation is successful. Click Win + x, Select Run, Enter Command Line

 

Input Java, Indicates that the command is successful. If no command is found, the command fails.
Input Javac, Indicates that the command is successful. If no command is found, the command fails.
Input Java-versionIf you check the version, the command is successful. If you cannot find the command, the operation fails.

Install Tomcat 9

Download it from the official website or click atat9.0.4 _ win_x64. Password: htz2

Decompress the Tomcat9.0.4 package, copy the path, and add it TOMCAT_HOMEEnvironment variable, which needs to be created.

Create CATALINA_HOMEEnvironment variable, copy the same path

In PATHAnd CLASSPATHAdd,

Open command line Input Service install Tomcat9 Installation

OpenControl Panel-> system and security-> management tools, ClickService

Find the Tomcat9.0 Service, right-click to enable

Decompress the bin directory of the directory.Batch Processing commands enabled and Disabled

Open your browser and typeTest https: // localhost: 8080. If it appears, it indicates that it is successful.

Last

Java and Tomcat are both very practical. It is necessary to master them earlier.I like to remember to like it. If you have any suggestions or comments, you can also follow me secretly.

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.