jdk 6 on mountain lion

Black picture Black · Nov 30, 2012 · Viewed 50.9k times · Source

I've just installed Mac OSX 10.8 Mountain Lion I'm trying to install a JDK version 6 There's no Mac package for version 6 on the Oracle downloads: http://www.oracle.com/technetwork/java/javase/downloads/jdk6u37-downloads-1859587.html

But there is one for JDK version 7 http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html

Is there somewhere else I can get a Mac package for JDK 6?

Answer

khagler picture khagler · Dec 1, 2012

As I recall, the first time you do something that needs Java the OS will ask if you want to install it, and version 6 is what you get. According to this page, typing java -version in the Terminal is enough to trigger the prompt.

For the JDK (and not the runtime), you'll need to log into developer.apple.com, search for java, and download the Java for OS X 2012-006 Developer Package. I just did this on my MacBook and now have javac 1.6.0_37.