installation of jdk1.5.0_09

I have found jdk1.5.0_09 in two locations on my harddrive. (I must have intalled it twice by accident!)

One is in its own folder called "C:\jdk1.5.0_09" and the other is in the "C:\Program Files\Java\jdk1.5.0_09" folder.

Both appear to be installed and expanded into all of the subfolders.

How do I find out which one is actually installed and will be used?.

[383 byte] By [tg_KGa] at [2007-10-3 10:13:06]
# 1

Which one is in your PATH environment variable?

If it's neither, then you're probably using java.exe that's somewhere in your Windows directory. That java.exe looks in the registry. Use regedit and lookup the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment

Look which version is mentioned under the key CurrentVersion.

Then look in the subkey for that version, look at what JavaHome is set to. That's the directory of the Java that's used.

jesperdja at 2007-7-15 5:33:24 > top of Java-index,Core,Monitoring & Management...
# 2

> Which one is in your PATH environment variable?

>

> If it's neither, then you're probably using java.exe

> that's somewhere in your Windows directory. That

> java.exe looks in the registry. Use regedit and

> lookup the following key:

>

> HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime

> Environment

>

> Look which version is mentioned under the key

> CurrentVersion.

>

> Then look in the subkey for that version, look at

> what JavaHome is set to. That's the directory of the

> Java that's used.

murugan_vjy1982@rediffmail.c at 2007-7-15 5:33:24 > top of Java-index,Core,Monitoring & Management...