I successfully created & ran the installer for the Apple Java 1.6 case on Mac OS X. In that case, the current execution directory (from its system property) indicated the directory where the application was executed, so I could point at the installed directories in the application bundle.
But in the case of Oracle Java, I have no way of locating the application bundle. The current directory system property indicates my home directory as the current directory.
Does anyone know a reliable way (when using Oracle Java 1.8) to locate the application bundle used to execute the application?