Cannot use Java 7 installation if Java 8 is installed

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

    2 Steps

    1

    Change registry key **HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion** to point to 1.7

    2

    Copy java.exe,javaw.exe and javaws.exe from your java 1.7 version to Windows\System32 folder (Since the corresponding files of java 1.8 are already there, you might have to overwrite with admin permissions)

    3

    (OOps actually not required 3rd step ) Open a new cmd window and check java -version

提交回复
热议问题