I've been struggling to get an app to run in OS X Mavericks. I finally was able to get it to run by drilling into the .app bundle and running the shell script directly. It seems that JAVA_HOME needed to be set. So I set it in my .profile in the shell, and everything works fine.
However, if I want to simply click the icon in the dock, it won't run. My guess is that this is because JAVA_HOME is not set globally. Since I'm not running the app directly from the shell, OS X doesn't know what JAVA_HOME is. It just keeps looking.
In previous versions of OS X, it seems that environment variables could be set for GUI apps by simply adding them to /etc/launchd.conf. This file doesn't seem to exist in Mavericks. How can I set a global environment variable that will work for GUI apps in Mavericks?