Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
stackoverflow source
I tried import junit.awtui in my module project main class

Error report : The package junit.awtui is not accessible

Problem is junit jar hasn't module-info.class, so its packages are not accessible
How can I resolve the problem ?


What I have tried:

Create module-info.class in jar
Posted
Comments
Andre Oosthuizen 23-May-23 11:29am    
Remove the junit.awtui import from your module project's main class. This is because the junit.awtui package is not accessible due to the missing module-info.class in the JUnit JAR.

Instead of using junit.awtui, consider using the newer versions of JUnit that provide alternative mechanisms for running tests, JUnit Platform or JUnit Jupiter jumps to mind.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900