the resource is not on the build path of a java project错误
生活随笔
收集整理的这篇文章主要介绍了
the resource is not on the build path of a java project错误
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
在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. 关闭该类,重新打开即可
转载于:https://www.cnblogs.com/davidwang456/p/4624215.html
总结
以上是生活随笔为你收集整理的the resource is not on the build path of a java project错误的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: spring jdbcTemplate使
- 下一篇: 分隔单词和标点符号示例