Home » Java » Java Jigsaw JUnit Testing – JUnit not in module

Java Jigsaw JUnit Testing – JUnit not in module

Posted by: admin July 12, 2018 Leave a comment

Questions:

I’m using Java 9.0.4 in Eclipse Oxygen.3a
JUnit 5 is on the modul-path and required in the module-info.java.
When I try to run my code i always get the following message:

Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for
C:\Users\Tim
HP.p2\pool\plugins\org.junit.jupiter.migrationsupport_5.0.0.v20170910-2246.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Provider
class org.junit.jupiter.engine.JupiterTestEngine not in module

I cannot really figure out how I can resolve this issue.

Answers: