MyEclipse中更换JDK及工程警告问题

来源:互联网 发布:常熟淘宝兼职客服 编辑:程序博客网 时间:2024/06/03 22:43

告警提示:

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

1 0
原创粉丝点击