Configuration of three variables java_home path classpath in Windows

Source: Internet
Author: User
Configuration of three variables java_home path classpath in Windows

Join it Software Technology Discussion QQ: 228249641 clicks

1: 1: java_home: indicates the JDK installation path, for example, C:/jdk1.5.0 _ 04.
2: path: the environment variable exists in Windows. You only need to modify it to point it to the JDK bin directory, in this way, you do not need to enter a large string of paths when compiling and executing programs in the console. The setting method is to keep the content of the original path and add it; % java_home %/bin3: class_path: class file imported in, ".; "starts with classpath = .; % java_home %/LIB; % java_home %/lib/tools. jar can be directly set using the BAT file
Set java_home = C:/jdk1.5.0 _ 06
Set Path = % java_home %/bin; % PATH %
Set classpath =.; % java_home %/LIB; % java_home %/lib/tools. Jar

 

 

II:

A. Right-click my computer (or click system in the control panel)-> properties-> advanced-> environment variable, and create a variable named java_home in the system variable, the variable value is the JDK installation path. example: java_home = C:/Program
Files/Java/jdk1.5.0 _ 05

B. Add; % java_home %/bin in Path

C. Add.; % java_home %/lib/tools. jar; % java_home %/lib/dt. jar in front of classpath;

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.