1. 程式人生 > >IDEA錯誤:Cannot start compilation: the output path is not specified for module "Test". Specify the out

IDEA錯誤:Cannot start compilation: the output path is not specified for module "Test". Specify the out

錯誤是發生在從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”,比如說我的就是   

將這兩處改好後就能正常運行了。 ---------------------  作者:zZach  來源:CSDN  原文:https://blog.csdn.net/zZ_life/article/details/51318306?utm_source=copy  版權宣告:本文為博主原創文章,轉載請附上博文連結!