Properly installing java 8 along with java 7

前端 未结 10 1210
无人共我
无人共我 2020-12-04 12:52

I\'ve JDK 1.7 installed on my windows 7 machine and after installing JDK 1.8 u20 I\'m having following error:

C:\\>java -version
Error: Registry key \'Sof         


        
10条回答
  •  感情败类
    2020-12-04 13:16

    If you are not comfortable to remove any files in Windows manually, just put your JAVA_HOME path in the front of Windows dirs.

    Define JAVA_HOME environment variable in Windows 7 and use it in variable PATH on first position of Path variable.

    JAVA_HOME -> D:\dev\Java\jdk1.8.0_45
    Path -> %JAVA_HOME%\bin;%SystemRoot%\system32;
    

提交回复
热议问题