This is so frustrating.
I did no update of java nor eclipse and suddenly I can\'t open eclipse. I even didn\'t install any other programs. Here is the error:
You need to create a file ~/.MacOSX/environment.plist
and add JAVA_HOME => /Library/Java/Home
entry into it.
If you have XCode installed, use it to add entry.
Otherwise, use plain text editor:
JAVA_HOME
/Library/Java/Home
After that, restart MaxOS or logout/login.
See http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html for details.
Cheers, Max