posted 15 years ago
When you say java -version in windows , it first looks for any java executable in the current directory.
If it does not find one, then it goes for PATH
As you have mentioned, you have tried java -version in the bin folders of 2 different versions of java. So, obviously you will get the version of the java executable in that particular folder.
Try java -version in any other folder and check.
They say you have to be the first, the best or different. I say, is it too much to ask for all three.