IDEA导入外部项目的系列问题:java代码文件不识别以及the output path is not specified for module

您所在的位置:网站首页 idea不识别java IDEA导入外部项目的系列问题:java代码文件不识别以及the output path is not specified for module

IDEA导入外部项目的系列问题:java代码文件不识别以及the output path is not specified for module

2024-07-15 08:25| 来源: 网络整理| 查看: 265

IDEA导入外部项目的系列问题:java代码文件不识别以及the output path is not specified for module 引言导入后java代码不识别the output path is not specified for module

引言

分享一点Java使用的经验。

java小白引入外部项目(zip类型的项目)直接将zip文件解压,然后通过idea中的File->New->Project from Existing Sources->选择解压后的文件,然后直接导入解压后的文件。 对于一个感兴趣的项目这种方式确实使得项目直接导入了IDEA中,但是有可能会出现以下两个问题:导入后的代码文件不识别以及出现the output path is not specified for module这两个问题。

导入后java代码不识别

以下图片是项目导入IDEAjava代码不识别的图片: 在这里插入图片描述 IDEA不能将项目中的代码文件识别为java代码文件,因此所有src文件夹下的代码文件都是橘黄色,所以应该采取的步骤为:File->Project Structure->Modules->点击+号->Import Module->点击解压后的文件夹->选择Create module from existing sources->不断点击next->create->点击apply->点击OK.

the output path is not specified for module

java新手在导入外部项目时还会出现编译报错:the output path is not specified for module.具体的解决方法如下:File->Project Structure->Project->Compiler output(设置编译输出文件夹)即可解决相关的问题。

以上所分享的是java新手在使用java过程中所遇到的一些困难,希望对大家有所帮助!



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3