Cannot start compilation: the output path is not specified for module…

使用Idea初期,没有设置class的输出路径,在run项目的时候会出现这种错误

解决办法

定位文件编译路径(project compiler output),在工具栏的File -> Project Structure… -> Project -> Project compiler output。
设置输出路径,就可以正常编译了

Cannot start compilation: the output path is not specified for module…