查看Build Path外部jar包的引用是否正确,如有红色叉号或者引用非.jar文件的均会提示此错误。 如果无明显错误,请尝试全选主类 -> 剪切 -> 保存,粘贴 -> 保存。 转载于:https://www.cnblogs.com/xinhuan/p/4914992.html