因为jdk不匹配。
右键项目名,build path——》configure build path.
Java build path——》Libraries
把尾部(unbound)的去掉remove,
Add Library,添加本机相关。