Where is Java Installed on Mac OS X?
On Mac OS X, the default location for the JDK (Java Development Kit) is /Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home/
, where <version>
is the version number of the JDK you have installed.
For example, if you have JDK 8 installed, the default installation location would be /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/
.
You can check which version of the JDK you have installed by running the following command in a terminal:
/usr/libexec/java_home -V
This will print out a list of all the JDKs that are installed on your system, along with their corresponding version numbers and installation paths.