Method 1 - basic check in Control Panel
- Choose Settings > Apps > Programs and Features
- Wait for the list to populate, scroll down and look for Java entries
- Entries showing the publisher as Oracle Corporation indicate that Oracle Java SE is installed
Method 2 - thorough check in Command Prompt
- Select Start , type command, and select Command Prompt
- At the prompt, type "where /r c:\ java.exe" and press Enter
- Wait for the command to finish (5 minutes on a typical laptop drive)
- Use Windows Explorer to open the Properties dialog for any matched files. Check the Digital Signatures tab to confirm whether the file is signed by Oracle Corporation.
Method 1 - basic check via Control Panel
- Choose Apple > System Preferences > Java > General > About
- About dialog showing Copyright Information confirming an Oracle product
Method 2 - thorough check via Command Prompt
- Open Terminal
- Run mdfind -name 'java' | grep '/bin/java$'
- Wait for the command to complete, then open the properties for each matched file and check the Additional Info tab for more information on confirming whether a java executable is part of an Oracle product installation or not.
Method 1 - basic check for Debian-based systems
- Run dpkg -l | grep java
You will need to empirically determine whether any installed versions are Oracle Java SE or not.
Method 2 - thorough check
- Run find / -name 'java' | grep '/bin/java$'
Again, you will need to empirically determine whether any installed versions are Oracle Java SE or not.
Once you have located java executables using one of the methods above, you can obtain full version information by running them from the command line using the full path and the “-version” option.
Typical Oracle output:
java version "1.8.0_401" Java(TM) SE Runtime Environment (build 1.8.0_401-b25) Java HotSpot(TM) Client VM (build 25.401-b25, mixed mode, sharing)
Typical OpenJDK output:
openjdk version "17.0.3" 2022-04-19 OpenJDK Runtime Environment (build 17.0.3+3) OpenJDK 64-Bit Server VM (build 17.0.3+3, mixed mode)