Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » setup junit in eclipse(failing to setup junit in eclipse)
setup junit in eclipse [message #1859614] Tue, 20 June 2023 09:15 Go to next message
amihai brudo is currently offline amihai brudoFriend
Messages: 1
Registered: June 2023
Junior Member
I'm using jdk 20 with Eclipse IDE for Java Developers - version 2023-06 (4.28.0)
I tried to create a test case: right click on package add new test case inside one of the packages under src.
Even after adding junit lib (tried with both junit 4 and 5) to buildpath, and making sure the correct import is there (depending on the version of junit I chose).
Junit imports and @Test annotation are failed to get recognized by eclipse nor can i add junit to the module info (fail to resolve module).
The window classpath variables contains the jar per my selection, in junit home.

I have only one other jar in my build path which is mysql-connector-java-8.0.30
So I dont think its a jar collision unless its colliding with the JDK itself.

any idea?
Re: setup junit in eclipse [message #1859620 is a reply to message #1859614] Tue, 20 June 2023 14:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33153
Registered: July 2009
Senior Member
It will be better to ask on the JDT forum:

Ed Merks
Professional Support:
Previous Topic:Eclipse Error with Repast Simphony
Next Topic:warning: Debugger speedups using cython not found.
Goto Forum:

Current Time: Tue May 28 01:21:36 GMT 2024

Powered by FUDForum. Page generated in 0.08755 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top