SyntaxFix
Write A Post
Hire A Developer
Questions
Which Mac version are you using? try these paths
/System/Library/Frameworks/JavaVM.framework/ OR /usr/libexec/java_home
This link might help - How To Set $JAVA_HOME Environment Variable On Mac OS X