作者:岳骏哲爱237 | 来源:互联网 | 2023-10-11 19:09
告警提示:DescriptionResourcePathLocationTypeBuildpathspecifiesexecutionenvironmentJavaSE-1.6.The
告警提示:
Description ResourcePath LocationType
Build path specifies execution environment JavaSE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment.test Build pathJRE System Library Problem。
解决办法:
MyEclipse8.6默认用自带的JDK,最高版本是1.6,如果想用自己安装的JDK1.7,设置方法:
菜单window--->Preferences--->Java--->Installed JREs,把默认JDK1.6的改为自己新安装的JDK1.7。
这时在java project中会警告:
Description Resource Path Location Type Build path specifies execution environment JavaSE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment. communication Build path JRE System Library Problem
去除警告方法:工程名称上右键菜单:Properties--->Java Build Path--->Libraries,选中"JRE System Library[JavaSE-1.6]",选择右侧按钮“Edit",打开新界面中选择"Workspace default JRR (JDK1.7......)"即可
转自:http://blog.sina.com.cn/s/blog_684fe8af0102uy13.html