could not find class file. make sure the file is compilable 解决办法

在使用eclispe 生成serialVersionUID时会报这样的错误,这时因为你在构建工作时,java 的编译环境出现错误
此时只要使用eclispe工具重新构建一次就可以了
具体方法如下
1、左键单击要构建的工程
2、选择build project 即可

猜你喜欢

转载自wangqiaowqo.iteye.com/blog/2152320