This post has already been read 11634 times!
Mountain Lion doesn’t ship with a java jre or jdk. And it removes the Apple one that was working in Lion. Installing the latest Apple sanctioned Lion Java Update results in exceptions.
[Update July 29th – it seems there is an jre from apple now that will auto-install]
Nothing yet from Apple, but don’t worry- the Oracle JDK7 works fine.
Just go to Oracle’s download site and download the latest JDK for OSX. You may need to signup, but it’s free.
There is some official blogging from Oracle about this. Enjoy.
My bash profile defined my JAVA_HOME, and after upgrading to ML I saw this logging in:
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
After installing the JDK7 from oracle it’s fine.
[14:09][dillera~]$ javac -version