idea 錯誤: 找不到或無法加載主類 xxx.xxx.xxxxx


idea 錯誤: 找不到或無法加載主類 xxx.xxx.xxxxx

JDK環境,maven項目還是ee還是web項目,是否都正常。

如果是用idea打開的話,在源碼目錄上點擊右鍵,然后找到Mark directory as->source root

 
看這篇:(真的是主類沒找到)

    http://www.cnblogs.com/mrray1105/p/8135616.html

 
解決不了,看這篇:(project structure 中修改path為當前項目目錄)

https://blog.csdn.net/qq_31382921/article/details/72898134

 
解決不了,看這篇:(idea本身緩存問題 清理緩存重啟IDEA  file-->invalidate Cache/restart)

https://blog.csdn.net/lizongbao1234567890/article/details/78120851

 

還是沒有解決,看這一篇:(Module must not contain source root. The root already belongs to module)

https://blog.csdn.net/angry_mills/article/details/81511130


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM