目录
1、如果当前 Project (项目)有 Module (模块),则在“Use classpath of module:”下拉选项卡中选择需要运行的 Module (模块).
Project Setting->Modules->demo2->Sources
Project Setting->Modules->demo2->Paths
Project Setting->Modules->demo2->Dependencies
Project Setting->Modules->demo2->Checkstyle
Project Setting->Modules->demo2->FindBugs-IDEA->General
Project Setting->Modules->demo2->FindBugs-IDEA->Report
Project Setting->Modules->demo2->FindBugs-IDEA->Filter
Project Setting->Modules->demo2->FindBugs-IDEA->Detector
Project Setting->Modules->demo2->FindBugs-IDEA->Annotate
问题描述
背景 : IntelliJ IDEA COMMUNITY 2019.2
程序文件:.java
Error: Module not Specified
解决方案
1、如果当前 Project (项目)有 Module (模块),则在“Use classpath of module:”下拉选项卡中选择需要运行的 Module (模块).
2、如果当前 Project (项目)没有 Module (模块),则在“File”->“Project Structure... Ctrl+Alt+Shift+S”对应的Project Structure(项目结构)中添加Module (模块),然后在“Run”->“Edit Configurations...”->“Use classpath of module:”下拉选项卡中选择需要运行的 Module (模块).
Project Setting->Modules->demo2->Sources
Project Setting->Modules->demo2->Paths
Project Setting->Modules->demo2->Dependencies
Project Setting->Modules->demo2->Checkstyle
Project Setting->Modules->demo2->FindBugs-IDEA->General
Project Setting->Modules->demo2->FindBugs-IDEA->Report
Project Setting->Modules->demo2->FindBugs-IDEA->Filter
Project Setting->Modules->demo2->FindBugs-IDEA->Detector
Project Setting->Modules->demo2->FindBugs-IDEA->Annotate
Project Setting->Modules->demo2->FindBugs-IDEA->Share
Run/Debug Configurations
添加资源文件和Java包