How to change default JRE for all Eclipse workspaces?

后端 未结 11 2108
囚心锁ツ
囚心锁ツ 2020-12-05 09:30

I have one JRE in C:\\Program Files (x86)\\Java\\jre6 and that was the only one at the time I installed Eclipse. I have subsequently installed a complete JDK i

11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 10:16

    On windows I've tried different approaches - setting JAVA_HOME, JRE_HOME and extending the PATH to point to the desiered jre18 but nothing helped - disabling the JRE17 in the java control panel didn't helped either

    What helped me out was to force eclipse to use the appropriate JRE in the eclipse.ini file e.g.

    -vm C:\java\jdk1.8.0_111\jre\bin\javaw.exe

提交回复
热议问题