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