Search code examples
javanetbeansjunit5

JUnit 5 test in Netbeans


I have troubles using JUnit 5.52 , when I add the test class and try running it I get the next message:


The <classpath> or <modulepath> for <junit> must include junit.jar if not in Ant's own classpath BUILD FAILED (total time: 0 seconds)


I'm running Apache NetBeans IDE 11.3 and I solved it by deleting JUnit 5 and using JUnit 4.12 but I might use 5.52 because of university requirements.

Any idea how to solve it, still using JUnit 5.52 or any JUnit 5 library?

Thanks in advance.


Solution

  • It seems there is no answer available, down grading to Junit 4.12 is the only solution. You could also try re-installing the jar library manually (which I tried also).