Java environment variable setting method

Source: Internet
Author: User

Java environment variable setting method

Configuring the JDK environment variable under Windows XP: (Windows7 similar)

1, install the JDK, the installation process can customize the installation directory and other information,

For example, we choose the installation directory for D:\java\jdk1.5.0_08;

2, after the installation is complete, right click on "My Computer", click "Properties";

Select the "Advanced" tab and click on "Environment variables";

3. In "System Variables", set 3 properties, Java_home PATH CLASSPATH

Click "Edit" if it exists, click "New" if it does not exist.

Java_home Installation path D:\java\jdk1.5.0_08 (this path includes folders such as LIB,BIN,JRE)

Path allows the system to identify Java commands under any path

Set to:%java_home%\bin;%java_home%\jre\bin

CLASSPATH is the Java load class or lib path, only the class is in CLASSPATH, and the Java command can

Identify, set as:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar

4, "Start"->; " Run ", type" cmd ", type the command" Java-version "," Java "," Javac "a few commands, appear screen, indicating that the environment variable configuration is successful;

Java environment variable setting method

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.