解决IDEA运行时报错Cannot start compilation: the output path is not specified for module “xxxxx“.



友情提醒:

先看文章目录,大致了解文章知识点结构,点击文章目录可直接跳转到文章指定位置。


第一章、问题分析

1.1)报错提示

报错如下:Cannot start compilation: the output path is not specified for module "xxxxx". Specify the output path in the Project Structure dialog.
翻译成中文: 无法启动编译:未为模块"xxxx"指定输出路径,在“项目结构”对话框中指定输出路径。

1.2)报错原因分析

报错的原因是:外部项目导入本地是缺少相应的配置,也就是没有指定输出out文件的路径。idea需要在项目下生成一个out目录,该目录下会存放java文件运行后的字节码文件(.class)。

第二章、解决方式

2.1)打开IDEA设置


①打开IDEA—>file—>project structure

idea

②选择project,设置out文件目录位置

在这里插入图片描述


③重启idea

猜你喜欢

转载自blog.csdn.net/baomingshu/article/details/131964226