Uninstall the standard version of jdk 1.7 and install 1.6 on the windows.

I installed both versions of jdk 1.6 and 1.7 and have projects developed on version 1.6 . Therefore I need 1.6 . I set the path in the environment variable for version 1.6 . But still showing version 1.7 when I used java -version from cmd .

I want to make the default version of jdk 1.6 on my computer. I am using windows 7 .

NOTE: I do not want to delete 1.7 , and I do not have administrative rights.

Please, help.

+4
source share
3 answers

During the installation of exe files, Java files are copied to the Windows System32 folder, check this location ( C:\Windows\System32 ), java.exe, javaw.exe and javaws.exe are available there.

What you need to do now, replace this exe with jdk 1.6 exe and open a new command prompt and check the version.

+2
source

First of all, make sure the java 1.6 source path is placed at the beginning of the Windows path because the first counter path is used. If you have done this, try running the NOT command prompt as an administrator and check the java version. It is strange that I had the same problem, and I was able to run version of java 1.6 only on the command line without administrative privileges.

+2
source

Add JavaPath \ bin to the PATH variable at the beginning of PATH.

+2
source

Source: https://habr.com/ru/post/1500458/


All Articles