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

其实这个错误是因为没有设置output的路径,只要修改两个地方的设置就可以了:

  1. 在Modules设置里勾选”Inherit project compile path”
    IDEA错误:Cannot start compilation: the output path is not specified for module "Test". Specify the out
  2. 设置Project中的”Project compiler output”
    IDEA错误:Cannot start compilation: the output path is not specified for module "Test". Specify the out
    选择”Project的路径”+”\out”.这样在项目目录中就可以发现out目录了,main方法也可以执行了。
    IDEA错误:Cannot start compilation: the output path is not specified for module "Test". Specify the out

原文链接:https://blog.csdn.net/zZ_life/article/details/51318306