编译报错:Cannot start compilation: the output path is not specified for module "com.mycode.connection".

新创建了一个项目,编译运行时报错:

Cannot start compilation:the output path is not specified for module “com.mycode.connection”. Specify the output path in the Project Structure dialog.

这里是因为没有为模块“com.mycode.connection”指定输出路径(这个路径目录是源码编译后Class文件的存放目录)。

解决方法:

在project structure(项目结构)的project settings里选中project,然后在Project compiler output选择项目中的out文件夹(如果在项目文件夹下没有out文件夹,可以自己创建一个,这次报错就是这种情况)

Java源代码编译成Class文件的输出路径:

全部评论

相关推荐

Cherrycola01:0实习 0项目 约等于啥也没有啊 哥们儿这简历认真的吗
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务