Cannot use Java 7 installation if Java 8 is installed

后端 未结 6 1185
野的像风
野的像风 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:59

    Windows and Unix both find programs using their PATH environment variable. You have an java.exe in your Windows\System32 which is appearing before your "preferred" version of Java.

    Change the PATH to be the one you need, or specify the full path when you need a different version.

提交回复
热议问题