J2SE base JDK environment variable configuration _java

Source: Internet
Author: User

Step 1: First look at the success of the configuration after the effect

Point win key-> run (or use win+r)
Enter cmd command
Input Java-version
After the configuration is successful, the version information, Java version "1.8.0_65", appears.

Step 2: Download and extract to E:/jdk

The correct directory is E:/JDK
Don't copy it to the E:/JDK/JDK directory.
Note Directory structure

Step 3: Environment variable Configuration

Right-click My Computer-> Properties-> Advanced-> Environment variables-> System variables
Note: The following system variable, not the user variable above
New variable name java_home, variable value E:\JDK
Modify the variable Path, plus%java_home%\bin at the front;
Note: "Path" is the first letter uppercase, do not change to "path" bin followed by a semicolon;

Step 4: Verify that the configuration is successful

Click to confirm the closure of the configuration page, this step must be done, or just the configuration can not be effective

Point win key-> run (or use win+r)
Enter cmd command
Input Java-version
If the version information appears, the configuration is successful
If it fails, adjust the previous configuration and then restart the cmd command instead of entering java-version in the original cmd

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.