 <p>it is kept in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment Java install a small exe in the system folder that looks up the keep and redirects there, so no PATH necessary.</p> <p>Linux version usually uses update-alternatives (depends on the distribution, of course)</p>