On OSX/Darwin Java Home should be determined by the result of the /usr/libexec/java_home script not just selecting /Library/Java/Home. See this article for details: http://developer.apple.com/mac/library/qa/qa2001/qa1170.html