Error: Module not specified (IntelliJ IDEA)

◇◆丶佛笑我妖孽 提交于 2019-12-04 22:12:43

This is because the className value which you are passing as argument for
forName(String className) method is not found or doesn't exists, or you a re passing the wrong value as the class name. Here is also a link which could help you.

1. https://docs.oracle.com/javase/7/docs/api/java/lang/ClassNotFoundException.html
2. https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html#forName(java.lang.String)

Update

Module not specified

According to the snapshot you have provided this problem is because you have not determined the app module of your project, so I suggest you to choose the app module from configuration. For example:

this is how I fix this issue
1.open my project structure

2.click module

3.click plus button

4.click import module,and find the module's pom

5.make sure you select the module you want to import,then next next finish:)

Faced the same issue. To solve it,

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!