Build path entry is missing… 原因:没有给项目设置jre 解决方法: 选中项目右键–Build path–>Configure Build path–>设置见下图 设置jre即可