Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See all the Java versions installed on Mac

Tags:

java

People also ask

How do I find where Java is installed on my Mac?

In macOS, the JDK installation path is /Library/Java/JavaVirtualMachines/jdk-10. jdk/Contents/Home . The root directory of the JDK software installation. This directory also contains copyright, README, and src.

Which Java versions are installed?

Type "java -version" into the Command Prompt, then press Enter on your keyboard. After a moment, your screen should display the information your computer has about Java, including what version you have installed.


/usr/libexec/java_home -V

lists one line per Java environment installed (and known to the /usr/bin/java command).

You can still have other Java distributions which are not registered. They are typically downloaded as ZIP files without an installer.