For the Oracle famaily allow JAVA_HOME to be set to soemthing differnt then the app_home.  This allows JAVA_HOME to be a symlink to the installed JDK.