Eclipse + Maven: force Execution Environment “JavaSE-1.6” instead of fixed JDK

后端 未结 3 909
刺人心
刺人心 2021-01-02 11:19

I\'m using Eclipse as IDE and Maven outside of it to keep all dependencies up to date and update the Eclipse-project as such. In Eclipse I usually specify the JRE system lib

3条回答
  •  独厮守ぢ
    2021-01-02 12:12

    Go into Window > Preferences > Java > Installed JREs > Execution Environments

    Select JavaSE-1.6, click the checkbox on the right that should indicate "perfect match"

    then use "update project configuration" from the maven menu.

提交回复
热议问题