Answer the question
In order to leave comments, you need to log in
Do I need to install the pubic JRE if the private JRE that comes with jDK 11 is installed?
Good day to all! Recently I started to learn Java and the following problem arose: I demolished all the old versions of Java and installed the latest version of JDK 11. But it's bad luck if I want to run a ready-made Java application (which was compiled in IDEA) from the console it gives an error:
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
java <название_приложения>
Answer the question
In order to leave comments, you need to log in
Read what is jdk, jre.
Build systems maven, gradle.
Use java se 8.
Run built jar from console java -jar youapp.jar
Read about compatibility between java versions.
There is no difference between private and public jre, just one comes with jdk, and the other is a cropped version of the same jdk, without the possibility of assembly, only launch. Write the full path to the jre you need `/path/to/java - jar.. '
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question