I have a MacBook Pro running Snow Leopard; how can I see what version of the Java SDK is installed on my Mac?
Type terminal in the search bar and open it by clicking on the icon in the search results. 3. Once in the command line, run the command: java -version . The output should display the Java version installed on your MacOS.
The Java version can be found in the Java Control Panel. Under the General tab in the Java Control Panel, the version is available through the About section. A dialog appears (after clicking About) showing the Java version.
In macOS, the JDK installation path is /Library/Java/JavaVirtualMachines/jdk-10. jdk/Contents/Home . The root directory of the JDK software installation.
The Java Runtime Environment (JRE) is included with 10.8, but the Java Development Kit (JDK) is not - that you'll need to install yourself. Could you provide a link from Apple or any sort of confirmation?
Open a terminal and type: java -version
, or javac -version
.
If you have all the latest updates for Snow Leopard, you should be running JDK 1.6.0_20 at this moment (the same as Oracle's current JDK version).
In /System/Library/Frameworks/JavaVM.framework/Versions
you'll see all the installed JDKs. There is a symbolic link named CurrentJDK
pointing the active JDK.
The simplest solution would be open terminal
$ java -version
it shows the following
java version "1.6.0_65"
$ cd /System/Library/Frameworks/JavaVM.framework/Versions
$ ls -l
Below is the last line of output:
lrwxr-xr-x 1 root wheel 59 Feb 12 14:57 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
1.6.0.jdk would be the answer
On modern macOS, the correct path is /Library/Java/JavaVirtualMachines
.
You can also avail yourself of the command /usr/libexec/java_home
, which will scan that directory for you and return a list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With