this error can be caused by adding the JUnit library to Modulepath rather than Classpath.
in Eclipse the left most panel "Package Explorer" right click your project go down to properties then go to "Java Build Path" Click on "Classpath" NOT "Modulepath" click "Add Library..." then Junit.