Build path specifies execution environment J2SE

时间:2024-03-24 13:34:23

在Myeclipse2017中新建一个web项目,出现一个warming:

Description ResourcePath LocationType Build path specifies execution environment JavaSE-1.7. There

解决方案:

一、在项目根目录右击,选择“Build Path”,然后选择“Config Bulid Path...”

Build path specifies execution environment J2SE

二、在打开的窗口选择“Libraries”选项卡,选中“JRE System Library [Java KDK VM 1.8.0_v112 Windows ]”点击“Edit...”


Build path specifies execution environment J2SE

三、选择“Workspace default JRE(Java JDK VM 1.8.0_v112 Windows)”【PS : 就是选择和电脑装的JRE环境一致】,点击“确定”

Build path specifies execution environment J2SE