the resource is not on the build path of a java project错误
生活随笔
收集整理的這篇文章主要介紹了
the resource is not on the build path of a java project错误
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
在eclipse中,使用mavenimport了一個工程,但是在對某一個類進行F3/F4/ctrl+alt+H操作的時候報錯:“the resource is not on the build path of a java project”。
這種情況也常常發(fā)生在重新打開eclipse時。
原因:在該工程的構建路徑中找不到該類。
解決方法:
?1. 找到buildpath下面的src下的文件remove掉,然后重新加上去,此時會更新所有目錄。
? 2. 關閉該類,重新打開即可
?
轉(zhuǎn)載于:https://www.cnblogs.com/davidwang456/p/4624215.html
總結(jié)
以上是生活随笔為你收集整理的the resource is not on the build path of a java project错误的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: spring jdbcTemplate使
- 下一篇: 分隔单词和标点符号示例