解决方法:1.右击项目—Bulid Path—Configure Build Path—Libraries,找到JRE System Library[JavaSE1.7],选中JRE System Libraary[JavaSE1.7],双击,进入到JRE System Library对话框,点击Installed JREs,进入到Installed JREs对话框,选中Installed JREs:下面的Name值为jdk1.7.0_17(default),双击打开JRE Definition对话框,在Default VM Arguments:中输入:-Xms512m -Xmx512m -XX:PermSize=512m -XX:MaxPermSize=512m,点击“Finish”