I don't want to find the system's JAVA_HOME. I don't want to lookup system variables.
I need to know exactly where a standalone (bundled JRE) is located at from within the .jar that was launched by it.
Example: User installs application with bundled .jre, and launches it. The program needs to determine not only the current running directory, but also the location of the java.exe that was bundled with it. I could make assumptions based on relative path to the current running directory, but I would prefer a method of absolutely determining the full path of the currently running java.exe. I don't believe this is a duplicate question as I have been able to find no instance of it (or an answer) that isn't answered by referring back to the system or user profile java_home.
I would think this would be a simple task, but so far have found no answer.