The difference between a JDK and a JRE and a JVM
Jdk:java Development Kit-java Development tool
Jre:java Runtime Environment-java Operating environment
Jvm:java Virtual Machine-java VM
Relationship: JDK contains jre,jre containing JVM
Two Java development environment configuration
1. Download JDK:www.oracle.com (Download->java (right)->java SE (includes JavaFX) | Early Access--->java Platform (JDK) 8u101/8u102---> choose the correct version to download the JDK.
2. Install JDK--same as installing other software (eg: installation directory: C:\Program file\java\jdk ...)
3. Configure Java Environment variables
A. Set the JAVA_HOME environment variable:
How-to: new type, environment variable, advanced system settings, properties---The variable name: Java_home variable value: C:\Program file\java\jdk ...) click Are you sure
B. Configure path:
Procedure: My Computer, properties, advanced system settings, advanced-environment variable, find path will ' C:\Program File\java\jdk....\bin; ' Copy to variable value, multiple directories separated by semicolons
'%java_home%\bin ' is copied to the variable value, and multiple directories are separated by semicolons
c.classpath:jdk5.0 versions above may not be configured with Classpath.
D. Verify that the Java environment variable is configured successfully: DOS window input cmd---Input java command---have the Java command explain the configuration is successful!
Java Learning 2-jdk and JRE and JVM differences _jdk Download Installation _ environment variable configuration