WIN7 x64 environment variable configuration under Java 8

Source: Internet
Author: User

    1. Oracle website download JDK for installation: I downloaded Java 8 jdk, address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
    2. Open the installation package and complete the installation
    3. Configure environment variables: Computer Right--Properties--Advanced system settings-environment variables

operate at the system variable :

(1) NEW: JAVA_HOME C:\Program Files\Java\jdk1.8.0_144
(2) NEW: JRE_HOME C:\Program Files\Java\jdk1.8.0_144\jre
(3) NEW: CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar ,注意前面的点:.
(4) Add in Path : %JAVA_HOME%\bin%和JRE_HOME%\bin: 在最前面添加如下:%JAVA_HOME%\bin;%JRE_HOME%\bin;

4. Use the CMD name to open the DOS window, enter Java or Javac or java-version Enter the display can be.

WIN7 x64 environment variable configuration under Java 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.