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