Java environment variable configuration (jdk1.8)

Source: Internet
Author: User

As a result of today's computer reload system (WIN10 Professional Edition), all the environment configuration is gone, so easy to take a look at this although it's simple but there are parts and I like the small white even configure a JDK environment can be wrong (have encountered before, is based on some of the tutorials in Baidu configuration environment variables Ah, How can it still appear without configuration success? Next I will build a JDK environment with you, God please pass by, think this tutorial can also, can use on the Please collection for later use, good nonsense not much to say, now start to get to the point:

Preparation Tool: jdk8u161 Development tools: Eclipse

    1. To the Oracle official website download JDK version, now Jdk10 has come out, because the latest version is prone to compatibility issues, so we choose jdk8u161 please follow the STEP.1;STEP.2 step operation, my system is 64 bit so I choose x64, if you are 32-bit system, Please select x86, depending on your system selection. Below are two installation files according to their own needs of one of the next, we use the Figure 2 Zip (free installation version) for demonstration today

      Figure 1 is an EXE executable file that needs to be manually installed

      Figure 2 is a zip compressed file, free installation, directly unzip it to the installation directory can be

    2. After the download is finished, unzip it to your file directory (custom directory), the directory name can not contain Chinese, please use English, to avoid the following will not find the path of this error.

      STEP01 unzip the downloaded compressed zip file into the specified directory (note: The extracted directory cannot have Chinese)

    3. After the decompression installation is complete, the environment variables are formally configured:

      Step01 computer → properties → advanced system settings → advanced → environment variables

      STEP02: System variable → new java_home variable value fill in the JDK installation directory (I am C:\Program Files (x86) \java\jdk1.8.0_162)

      STEP03: System variable → find Path variable → edit at the end of the variable value input%java_home%\bin;%java_home%\jre\bin, (note that the original Path of the variable value at the end there is no; number, if not, first enter; number and then enter the above code)

      STEP04 system variable → new CLASSPATH variable

      Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)

      Step 05 configuration Complete to begin detection of configuration success


      Open the Command Window win+r---> Input cmd Enter, enter java-version in the command window

Java environment variable configuration (jdk1.8)

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.