Cannot start compilation: the output path is not specified for module "salesystem". Specify the output path in Configure Project.


錯誤是發生在從github上checkout自己的項目時。因為沒有將配置文件一起上傳,所以在運行java程序時有了這個報錯:

Cannot start compilation: the output path is not specified for module “Test”. Specify the output path in Configure Project.

其實這個錯誤是因為沒有設置output的路徑,只要修改兩個地方的設置就可以了:
1. 在Modules設置里勾選”Inherit project compile path”


2. 設置Project中的”Project compiler output”

選擇”Project的路徑”+”\out”,比如說我的就是

 

 



將這兩處改好后就能正常運行了。


免責聲明!

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



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