首页 > 编程语言 > 详细

the resource is not on the build path of a java project错误

时间:2015-07-06 15:28:50      阅读:851      评论:0      收藏:0      [点我收藏+]

在eclipse中,使用mavenimport了一个工程,但是在对某一个类进行F3/F4/ctrl+alt+H操作的时候报错:“the resource is not on the build path of a java project”。

这种情况也常常发生在重新打开eclipse时。

原因:在该工程的构建路径中找不到该类。

解决方法:

 1. 找到buildpath下面的src下的文件remove掉,然后重新加上去,此时会更新所有目录。

  2. 关闭该类,重新打开即可

技术分享

 

the resource is not on the build path of a java project错误

原文:http://www.cnblogs.com/davidwang456/p/4624215.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!