Where is the java.exe that launched me?
<p>Is there some way I can find the path to the java.exe that launched me?</p>

<p>In this case I am on Windows but if there is a general solution I would welcome it.</p>

<p><strong>Added</strong></p>

<p>FYI: In most cases my tool will be launched from a full path to an unregistered java.exe. e.g. <code>C:\ABC\DEF\SDK\JRE\BIN\Java -jar MyTool.jar</code>. Can I find the <code>C:\ABC\DEF\SDK\JRE\BIN\</code>.</p>

<p>Yes it is rather self-referential. :)</p>
