views:

80

answers:

3

I have a MacBook Pro running Snow Leopard; how can I see what version of the Java SDK is installed on my Mac?

+1  A: 

Which SDKs? If you mean the SDK for Cocoa development, you can check in /Developer/SDKs/ to see which ones you have installed.

If you're looking for the Java SDK version, then open up /Applications/Utilities/Java Preferences. The versions of Java that you have installed are listed there.

On Mac OS X 10.6, though, the only Java version is 1.6.

mipadi
i am installng intellij. and as i know somwhere in the configuration i 'll need to set jdk. i just wanna make sure that my jdk is updated.
Ali_IT
+1  A: 

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).

Jesper
A: 

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.

Stefan Schmidt