Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

added 38 characters in body
Source Link
Federico klez Culloca
  • 27.3k
  • 17
  • 61
  • 102

My OS is Windows 10 and I use eclipse to write Java,I download

I downloaded algs4.jar from the of algorithm4 offical network,then use then used it as my project external jars,but but when I try to run the program it keeps sendgiving an error like this:

Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Users\hw\Downloads\algs4.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: TestAlgs4.class found in top-level directory (unnamed package not allowed in module)

java.lang.module.FindException: Unable to derive module descriptor for C:\Users\hw\Downloads\algs4.jar Caused by: java.lang.module.InvalidModuleDescriptorException: TestAlgs4.class found in top-level directory (unnamed package not allowed in module)

I google the problem and tried to delete the TestAlgs4.classTestAlgs4.class as the former error messages said but it did not work,Where my wrong.

How can I fix this?

enter image description hereenter image description here

My OS is Windows 10 and I use eclipse to write Java,I download algs4.jar from the of algorithm4 offical network,then use it as my project external jars,but when I try to run the program it keeps send error like this:

Error occurred during initialization of boot layer

java.lang.module.FindException: Unable to derive module descriptor for C:\Users\hw\Downloads\algs4.jar Caused by: java.lang.module.InvalidModuleDescriptorException: TestAlgs4.class found in top-level directory (unnamed package not allowed in module)

I google the problem and tried to delete the TestAlgs4.class as the former error messages said but it not work,Where my wrong?enter image description here

My OS is Windows 10 and I use eclipse to write Java

I downloaded algs4.jar from the algorithm4 offical network, then used it as my project external jars, but when I try to run the program it keeps giving an error like this:

Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Users\hw\Downloads\algs4.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: TestAlgs4.class found in top-level directory (unnamed package not allowed in module)

I google the problem and tried to delete the TestAlgs4.class as the former error messages said but it did not work.

How can I fix this?

enter image description here

Source Link

Stuck in importing algs4 in 《algorithm4》 learning

My OS is Windows 10 and I use eclipse to write Java,I download algs4.jar from the of algorithm4 offical network,then use it as my project external jars,but when I try to run the program it keeps send error like this:

Error occurred during initialization of boot layer

java.lang.module.FindException: Unable to derive module descriptor for C:\Users\hw\Downloads\algs4.jar Caused by: java.lang.module.InvalidModuleDescriptorException: TestAlgs4.class found in top-level directory (unnamed package not allowed in module)

I google the problem and tried to delete the TestAlgs4.class as the former error messages said but it not work,Where my wrong? enter image description here

lang-java

AltStyle によって変換されたページ (->オリジナル) /