Cannot use Java 7 installation if Java 8 is installed

后端 未结 6 1189
野的像风
野的像风 2021-02-09 23:27

I normally still use Java 7 for all my coding projects (it\'s a company \"politics\" issue), but I installed Java 8 for one third-party project I am contributing to. Now, it see

6条回答
  •  难免孤独
    2021-02-09 23:54

    I had to make 2 changes for it to work:

    1. Changed the Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' to 1.7 from 1.8
    2. The Java 8 installation adds a new entry to the PATH environment variable 'C:\ProgramData\Oracle\Java\javapath'. I removed this entry from the PATH.

提交回复
热议问题