JDK environment variable Configuration

Source: Internet
Author: User
Keywords Java environment variables variables installation
Tags advanced click computer configuration configure development download environment

For Java development, first install the JDK, and then configure the environment variables after installing the JDK:

1, download jdk (http://java.sun.com/javase/downloads/index.jsp), I downloaded the version is: Jdk-6u14-windows-i586.exe

2. Installation Jdk-6u14-windows-i586.exe

3. Configure environment variables: Right-click "My Computer"--> "Advanced"--> "Environment variables"

1 A new Java_home variable in the system variable, the value of the variable is: C:\Program files\java\jdk1.6.0_14 (completed according to their own installation path)

2 new CLASSPATH variable, variable value:.; %java_home%\lib;%java_home%\lib\tools.jar

3 Add the variable value in the path variable (existing without new):%java_home%\bin;%java_home%\jre\bin (note that the value of the variable is ";" Separated)

4, "Start"--> "Run"--> input "Javac"--> "enter", if the normal print usage instructions to configure success!

The analysis of supplemental environment variables:

JAVA_HOME:JDK Installation Path

Classpath:java load Classpath, only classes can be recognized by Java commands in Classpath, plus a "." Before the path. Represents the current path.

Path: The system can recognize the JAVA,JAVAC command under any path.

Related Article

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.