idea 錯誤: 找不到或無法加載主類(彙總貼)

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/u013041642/article/details/72835242
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章