I have many Java versions installed on a Windows 7 machine. Some of them are 32 bits, some are 64 bits. Now as default it starts one of those last versions (1.7 64 bits). How do I tell my Windows 7 machine to use another version of Java? One of the reasons is that I'm developing a JNI project from Microsoft Visual Studio C++ - it uses also java 1.7 64 bits.
I have set:
and system variable:
I had no idea which is better to set - for user or system settings. Done both.
And...it didn't helped :(
When I run "java -version" from cmd i have java 1.7, but not java 1.4 like defined in PATH.
after run C:where java
I got two results:
Who let Java go to my windows directory ???!!!
How to deal with that?