Windows uses the PATH environment variable. The first instance of java.exe found in the PATH wins.
java -d32 -version