InvalidModuleDescriptorException when running my first java app

We Are Going To Discuss About InvalidModuleDescriptorException when running my first java app. So lets Start this Java Article.

InvalidModuleDescriptorException when running my first java app

  1. InvalidModuleDescriptorException when running my first java app

    It seems that you haven't created a package. My usual procedure in Eclipse is:
    Create a new Java project
    Inside that project: Create a new package
    Inside that package: Create a new Java class
    Eclipse will help you a lot with the settings. Then just copy your code into that class and hit the 'start' button.

  2. InvalidModuleDescriptorException when running my first java app

    It seems that you haven't created a package. My usual procedure in Eclipse is:
    Create a new Java project
    Inside that project: Create a new package
    Inside that package: Create a new Java class
    Eclipse will help you a lot with the settings. Then just copy your code into that class and hit the 'start' button.

Solution 1

I was getting the same error. Deleting the module-info.java file solved it for me.

Original Author Jaideep Dhumal Of This Content

Solution 2

It seems that you haven’t created a package. My usual procedure in Eclipse is:

  • Create a new Java project
  • Inside that project: Create a new package
  • Inside that package: Create a new Java class

Eclipse will help you a lot with the settings. Then just copy your code into that class and hit the ‘start’ button.

Original Author Sven Affeld Of This Content

Solution 3

by removing module class problem solved for me in eclipse

Original Author Naveen Neelam Of This Content

Solution 4

i moved my main class and sample.fxml file to a new package that throws this error below

“Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: C:\Users\Thomas\eclipse-workspace\HelloWorld\bin
Caused by: java.lang.module.InvalidModuleDescriptorException: HelloWorld.class found in top-level directory (unnamed package not allowed in module)”

i moved my class file and fxml file to normal position. it fix my problem. but i have to find why it happends. cheers….

Original Author kv vinay 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