I am having a pathetic issue with Java in my mac osx 10.7.3 .
Previously I installed it and it was working fine.
After some changes in the .bash_profile and .profile file in the course of time,
I am having an error like
Unable to locate an executable at "/usr/bin/java/bin/java"
alias start_mysql="/Library/StartupItems/MySQLCOM/MySQLCOM start"
alias stop_mysql="/Library/StartupItems/MySQLCOM/MySQLCOM stop"
export JAVA_HOME=/usr/bin/java is the culprit. This env var should point to the JDK or JRE installation directory. Googling shows that the best option for MacOS X seems to be