选中项目右键->properties->Java Build Path,看看是不是少jar包了,少了补上就可以了
1、选中项目-》点击菜单栏project->clean2、选中项目右键-》build path-》configure build path->order and export->勾选库