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

idea 运行没有out文件夹

项目运行或出现这样的错误

IDEA错误:Cannot start compilation: the output path is not specified for module “Java“. Specify the out_第1张图片

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

1.点击idea左上角File

2.选择Project Structure

3.在Modules设置里勾选”Inherit project compile path”

IDEA错误:Cannot start compilation: the output path is not specified for module “Java“. Specify the out_第2张图片

4.设置Project中的”Project compiler output”

IDEA错误:Cannot start compilation: the output path is not specified for module “Java“. Specify the out_第3张图片

5.选择”Project的路径”+”\out”,比如说我的就是D:\ideaproject\javaSE\out

IDEA错误:Cannot start compilation: the output path is not specified for module “Java“. Specify the out_第4张图片

将这两处改好后就能正常运行了。

你可能感兴趣的:(Java,SE,java,idea)