When I run on console <code>javac -version</code>, I get the version number as <code>11.0.2</code>, but when I run <code>java -version</code> I get the following error:
When I run on console
javac -version, I get the version number as
11.0.2, but when I run
java -version I get the following error:
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' Error: could not find java.dll Error: Could not find Java SE Runtime Environment.
What should I do about this? Which version of JRE I need to install for JDK 11.0.2,so that I won't get any compatibility issues which executing java code?
Java Fundamentals: Learn Java for absolute beginners
Learn Java Programming Using Practical Assignments. Start Building Back-end Web Applications Robust Test Automation Frameworks By End Of The Course. Learn More!
Fundamentos de Java: Aprende Java desde cero, sin misterios