32-bit java dominates my PATH magically
- by Kos
I have a 32-bit Java installed just for Chrome and 64-bit Java JDK for everything else.
When I type java -version in the cmd, the 32-bit Java answers:
C:\>java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
This is the 32-bit JRE installed for Chrome (the installer name was chromeinstall.exe).
However, I'd like the default Java to be this one:
C:\>"Program Files\Java\jre6\bin\java.exe" -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
And for the fun part, only the 64-bit one is in PATH!
C:\>echo %PATH%
C:\Windows\system32;C:\Program Files\Java\jre6\bin
(snipped irrelevant entries)
So long story short: 64-bit JRE is in PATH, but 32-bit JRE is ran by default. What is happening here? How to fix it?
Tried reinstalling the 64-bit JDK as a whole, didn't help.