I had the same problem.
I had installed java 7 and Gehi didn't start, I got an error in the /vat/log/system.log
Exited with code: 2
At the end, I didn't uninstall java 7 and I installed java 6 from:
http://support.apple.com/kb/DL1572?viewlocale=en_US
It works!!!