Search results
Results from the WOW.Com Content Network
You can open up terminal and simply type. java -version // this will check your JRE version. javac -version // this will check your java compiler version (JDK) if you installed. this should show you the version of java installed on the system (assuming that you have set the path of the java in system environment).
If you want to check the version of the Java compiler used within your local JDK use javac -version. Note: if you use multiple JDKs the one that figures first a.k.a. above all others version you installed and referenced within your system path variables is applied.
You can lookup all versions of Java installed in registry. Take a look at HKLM\SOFTWARE\JavaSoft\Java Runtime Environment and HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment for 32-bit java on 64 bit Windows. This is how java itself finds out different versions installed.
There are following ways to find the Java version in Windows: Using Command Prompt. Using Java System Class. Using Control Panel. Note: Before checking the Java version, ensure that Java is installed and the path is properly set. Using Command Prompt.
In this short article, we discussed how to find out if Java is installed on a Windows 10, Mac OS X or Linux/Unix machine even if it’s not on the PATH. We also looked at a couple useful commands for locating our Java installation.
In the terminal, we can use `javac -version` to check the JDK version, and `java -version` to check the JRE version.
Identify Java version on Windows 11 or 10. We are assuming that you already have the JDK installed on your Windows system, hence run the given command and you will get the output revealing the currently installed version of Java on your Windows system.
2.1 Open Command Prompt. To check if Java is installed on your Windows machine, you will need to use the Command Prompt. - Press the Windows key and type cmd in the search bar. - Click on Command Prompt from the search results. 2.2 Run java -version Command.
Key Takeaways. Run the "java --version" command in a Terminal window to check the Java version your PC is using. You can also open the "About Java" window from the Start menu, but it may show a different version of Java that's not currently being used if you have Java versions installed.
Open your command prompt or terminal and run these commands: To check for the JRE: java -version. To check for the JDK: javac -version. If either of these commands produces a version output, the respective Java environment is installed.