Error: Module not specified (IntelliJ IDEA)

We Are Going To Discuss About Error: Module not specified (IntelliJ IDEA). So lets Start this Java Article.

Error: Module not specified (IntelliJ IDEA)

Advertisements
  1. Error: Module not specified (IntelliJ IDEA)

    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.

  2. Error: Module not specified (IntelliJ IDEA)

    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.

Solution 1

Advertisements

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:

enter image description here

Original Author Elham Kohestani Of This Content

Solution 2

Advertisements

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

2.click module
enter image description here
3.click plus button
enter image description here
4.click import module,and find the module’s pom
enter image description here
5.make sure you select the module you want to import,then next next finish:)
enter image description here

Original Author Hanz Of This Content

Solution 3

Advertisements

For IntelliJ IDEA 2019.3.4 (Ultimate Edition), the following worked for me:

  1. Find the Environment variables for your project.
  2. Specify, from the dropdowns, the values of “Use class path of module:” and “JRE” as in the attached screenshot.

enter image description here

Original Author tonderaimuchada Of This Content

Solution 4

Advertisements

I faced the exact issue of module not found and solved it by navigating to pom.xml file in file system of my project and opening it as a maven project in my intelliJIdea.

Then it has populated the sub modules for selection in the edit configurations window.

Original Author Ravi Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment