eclipse报错:The project: XXXX which is referenced by the classpath, does not exist.


和往常一样在项目的包中建立一个类,当这个类运行时就报了The project: Test which is referenced by the classpath, does not exist.的错误,

代码什么都没有问题,经过网上查询,原来是项目名重复造成的结果,但是我这也没有重复。

想想可能是以前的工作空间曾经出现过这个名字的项目文件,所以尝试了一下该变了项目名称,一运行就好了。




    

猜你喜欢

转载自blog.csdn.net/qq_34851243/article/details/70182873