Path resolution without PATH variable

I installed the latest version of JDK 1.6.0_25 on my 64-bit Windows 7 machine. Then I tried "java -version" on the command line without editing the path variable. It worked, so I assumed that the installation added a new path to the environment.

But when I looked at the path variable through the "Advanced System Settings" tab, there was no sign of "C: \ Program Files (x86) \ Java \ jdk1.6.0_25 \ bin \" or anything equivalent to it.

How is the path resolved?

+4
source share
2 answers

If you are on Windows Server 2003, Vista, or Windows 7, you can try the where command:

C:\>where java

For those using Linux, the equivalent of where is whereis .

+4
source

it is stored in the registry: HKEY_LOCAL_MACHINE \ SOFTWARE \ JavaSoft \ Java Runtime Environment Java installs a small exe into the system folder, which scans the contents and redirects there, so there is no need for PATH.

The Linux version usually uses update alternatives (depending on the distribution, of course)

+1
source

All Articles