Windows configuration java environment variables, does not take effect after modifying the java version

The system has previously installed jdk1.8, but now it needs to be changed to jdk1.6. After the installation is complete and the java_home path is configured, cmd executes java -version and still prints Java1.8

 

1. Check if there is C: \ ProgramData \ Oracle \ Java \ javapath under the environment variable path; there are three files java.exe javaw.exe javas.exe in this folder. Delete the path in the path and it ’s OK.

If it still doesn't work, go on.

2. Delete the three files java.exe, javaw.exe and javas.exe in the C drive directory C: \ Windows \ System32;

If it doesn't work, the computer will be smashed and replaced with a new java environment.

Guess you like

Origin www.cnblogs.com/dch0/p/12700064.html