Learning notes: java + web development environment configuration, learning notes java

Source: Internet
Author: User

Learning notes: java + web development environment configuration, learning notes java

1. Download, install, and configure JDK

(1) download

1. Baidu search jdk, open the first link http://www.oracle.com/technetwork/java/javase/downloads/index.html


2. Select "Java Platform (JDK) 9". [download the latest version]


3. Download the corresponding version [Windows] based on your operating system]


4. After the download is complete, you can directly click "Next" to install it. Generally, it is the default installation location [which can be customized]


(2) Configuration

1. Three Environment Variables

(1) JAVA_HOME: configure the JDK installation path

(2) Path: configure the JDK command file location, that is, the bin directory location.

(3) CLASSPATH: configure the location of the class library file, that is, the location of the lib directory.


2. Right-click the computer and choose Properties> advanced system Settings> environment variables.


[The following is the variable name for my path configuration]

3. JAVA_HOME: click New under system variables, and enter the variable name and variable value.

Variable name: JAVA_HOME

Variable value: C: \ Program Files \ Java \ jdk-9.0.1


4. Path: Find the "Path" variable in the system variable, double-click Edit, and add it to the beginning. Separate it with the variable values that come with the system.

Variable name: Path

Variable value: C: \ Program Files \ Java \ jdk-9.0.1 \ bin

[This variable system exists. The variable name is case-insensitive and must not be created. Otherwise, you will not be able to use the ipconfig command]

PS: If you accidentally delete the system variable value of Path, try to add the following statement [win7 64-bit operating system]

SystemRoot % \ system32; % SystemRoot % \ System32 \ Wbem; % SYSTEMROOT % \ System32 \ WindowsPowerShell \ v1.0 \;


5. CLASSPATH: click "new" under the system variable. First, enter "." To represent the current path. Then, enter "." To separate the paths. Finally, enter the location of the lib directory.

Variable name: CLASSPATH

Variable value:.; C: \ Program Files \ Java \ jdk-9.0.1 \ lib


(3) Verification

Open "start", Enter cmd to open the command line, and enter the "java-version" command. If the following result is displayed, the JDK configuration is successful.




2. Download Eclipse

1. Baidu searched for "eclipse" and opened the first official website.


2. Select "Download Packages" to go To the Download page and select a version to Download based on your operating system and requirements. Https://www.eclipse.org/downloads/eclipse-packages/


3. decompress the package directly after the download is complete.


3. Download and configure Tomcat

(1) download and install

1. Baidu search tomcat, open the first link http://tomcat.apache.org/


2. Different tomcat versions are available under "Download" in the left-side navigation pane of the webpage. Select a version to go To the Download page.


3. I usually download the decompressed version. After the download is successful, I can decompress it directly.


(2) Configuration

1. Right-click the computer and choose Properties> advanced system Settings> environment variables.


2. Click new under system variables, enter the variable name CATALINA_BASE, and variable value (Tomcat decompression path)

Variable name: CATALINA_BASE

Variable value: D: \ apache-tomcat-9.0.1


3. Click new under system variables, enter the variable name CATALINA_HOME, and variable value (Tomcat decompression path)

Variable name: CATALINA_HOME

Variable value: D: \ apache-tomcat-9.0.1


4. Find the Path variable and click Edit. First, add a semicolon to the variable value header and add the variable value before the semicolon.

Variable name: Path

Variable value: % CATALINA_HOME % \ lib; % CATALINA_HOME % \ bin


(3) Verification

1. Open "start", Enter cmd to open the command line, enter the "startup" command, and press enter to bring up another window. When the last sentence appears in this window, Tomcat is started successfully.



2. Open the browser and enter http: // localhost: 8080/. The following interface is displayed, indicating that the Tomcat configuration is successful.




The above are only my notes in the learning process and are for reference only. If any error occurs, please correct it. Thank you.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.