The path / System / Library / Frameworks / JavaVM.framework / Versions / Some_version_number / Home / is where mine is in Macbook pro (Lion).
Here is mine: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
When you type "what java", the symlink is what is returned, not the actual Java home path that you need. This path must be defined in the conf / hadoop-env.sh file, which is located in the root of the Hadoop package.
I am using Hadoop and I ran into this problem. The path I posted fixed my problem.
source
share