How do I add execution environment 1.8 to Eclipse Luna?

后端 未结 3 1041
一向
一向 2020-12-11 03:13

I have jre8 installed and set as the default for the jre but under compiler compliance I can\'t find 1.8 and under execution environment I can\'t find javaSE 1.8. I\'m using

3条回答
  •  一向
    一向 (楼主)
    2020-12-11 03:22

    Open Preferences and look in 'Java > Installed JREs'. If you don't have a Java 8 shown there click 'Add...' to add it. Close the preferences.

    Open Preferences again and look in 'Java > Installed JREs > Execution Environments', select 'JavaSE-1.8' and make sure your Java 1.8 is checked as the Compatible JRE

提交回复
热议问题