Jre:java Runtime Environment
Jdk:java Development Kit
The JRE, as its name implies, is the Java Runtime Environment, which contains the Java virtual machine, the Java base Class library. The software environment that is required to run a program written in the Java language is provided to the user who wants to run the Java program.
The JDK, as its name implies, is the Java SDK, the developer kit needed by programmers to write Java programs in the Java language, and is available to programmers. The JDK contains the JRE, as well as compiler Javac, which compiles Java source code, and includes many tools for debugging and analyzing Java programs: JCONSOLE,JVISUALVM and other tools, as well as the documentation and demo example programs that Java programs need to write.
If you need to run a Java program, just install the JRE. If you need to write a Java program, you need to install the JDK.
Java Bottom Learning---1