Java java_home, Path, classpath

Source: Internet
Author: User

Java_home: Specifies the installation directory for the JDK. Third-party software Eclipse/tomcat find the installed JDK under the directory specified in Java_home.

Path: Configure the installation directory for the JDK. Run the JDK program at the command line, such as Java/javac, and the system will look in the current directory first, and if it cannot find it, it will go to the path. By configuring the JDK's installation directory in path, you can compile Java source code in any directory and execute Java programs.

Classpath: Configures the Java program storage path. When an external Java program needs to be called, the class file of the called classes is found in classpath.

Operating principle of the attached JDK:
There are two steps to running the Java source code:

1. Use the JAVAC program to compile the source code into a. class file.

2. Run the. class file using a Java program.

Reference:

Why is JDK in Java with path and classpath? Pinterest

Java java_home, Path, 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.