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

Cannot start compilation: the output path is not specified for module "..." Specify the output path

原因:專案中此時沒有指定class檔案生成的路徑,若單純指定module的output路徑會導致後續出現無法找到類的Error。 解決辦法: 1. 開啟project structure->project, 在右側project compiler output目標路徑資料夾,通常是"\Workspace Intelij\\project_name\\out"; 2. 開啟(project structure->)module, 在paths欄中選擇Inherit project compiler output path; 3. 點選確定。