Cannot start compilation:the output path is not specified for module spcify the output path in conf

出现标题这个错误是在intelliJ IDEA 中创建项目之后没有指定项目编译输出的地方,这种情况存在new java moudle。如下图:

Inherit project compile output path 意思是:继承项目编译输出路径;看第二张图的介绍。Use module compile output path 意思是:使用模块编译输出路径;一般只有maven项目默认是有编译输出位置的,而java moudle是没有输出位置,所以需要自己手动去指定。

这里是项目编译输出地址,如果所有module都选择了如上图的“Inherit project compile output path”则下图用红色标记需要指定输出位置即可。

猜你喜欢

转载自blog.csdn.net/ziwuzhulin/article/details/80242565