The JAVA_HOME environment variable is not set
Please point it to a valid JDK installation
So I ran :
This article from Apple's site suggested that the home should always point to that symlink. Unfortunately I got the same error.
showed only a JRE :
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
showed the same thing. So where is this JDK that Apple speaks of? Its there. The only thing that I was missing was :