錯誤是發生在從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”,比如說我的就是
將這兩處改好后就能正常運行了。