How to change workspace JRE in Eclipse

前端 未结 3 692
半阙折子戏
半阙折子戏 2020-12-16 04:52

While creating new Java project in Eclipse I got following warning \"The current workspace uses 1.4 JRE...\"
\"<

3条回答
  •  感情败类
    2020-12-16 05:14

    The issue where it is compiling with 1.4 but the workspace Preferences Compiler setting is 1.6 seems to be the issue described in this bug:

    Bug 499675 - Global compiler settings ignored after restarting, defaults to 1.4 even though 1.8 displayed https://bugs.eclipse.org/bugs/show_bug.cgi?id=499675

    where the workaround is to change the workspace setting to a different version number and then back to 1.6. That would enable the workspace to compile with 1.6. To compile with 1.7 you'd need to upgrade eclipse as in BalusC's answer.

提交回复
热议问题