What is the relationship between the JDK and the JRE?
A: The JDK is the abbreviation for Java Development Kit, which refers to the SDK used by the developer, which provides the Java development environment and the operating environment. The JRE is the abbreviation for Java Runtime enviroment, which refers to the Java Runtime Environment, which is intended for users of Java programs. The JDK contains the JRE.
Second, how to configure environment variables?
A: "My Computer" and "System Properties" and "Advanced" and "Environment variables" are set.
1. Create a new system environment variable java_home, with the value of the JDK installation directory, such as C:\Program files\java\jdk1.8.0_45
2. Set the system environment variable path, add%java_home%\bin
3. New environment variable CLASSPATH, variable value is.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (Note that there is "." In front, don't neglect it)
Third, how to test the Java environment variables to build success?
A: After configuring the environment variables, open the Command line window, enter "Java-version" To view the Java version, the Java environment was built successfully. You can also enter "Java-verbose" to view JDK detailed loading information.
Please specify the source of the reprint, thank you. Small qq:1396667216, Welcome to Exchange "
Java Development Environment Building