What to do if jdk12 does not come with jre
jdk11 and jdk12 have changed a bit based on the previous versions. Installation There is no jre by default.
If you need jre, you need to go to the jdk directory to
open the command window (cmd), and then execute the following command:
bin\jlink.exe --module-path jmods --add-modules java.desktop --output jre
After execution, jre will be generated.
Recommended: "Java Tutorial"
The above is the detailed content of What to do if jdk12 does not come with jre. For more information, please follow other related articles on the PHP Chinese website!