Not able to get java version in windows

Not able to get java version in windows

When I run on console&nbsp;<code>javac -version</code>, I get the version number as&nbsp;<code>11.0.2</code>, but when I run&nbsp;<code>java -version</code>&nbsp;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?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Java Fundamentals: Learn Java for absolute beginners |Simpliv

Java Fundamentals: Learn Java for absolute beginners

Java Essentials : Learn Core Java From Basic to Advance

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 | Simpliv

Fundamentos de Java: Aprende Java desde cero, sin misterios