Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JUnit test in Eclipse RCP with maven leads to ClassDefNotFoundError(ClassDefNotFoundError when running unit test by maven)
JUnit test in Eclipse RCP with maven leads to ClassDefNotFoundError [message #1824358] Tue, 14 April 2020 09:55
Luong Nugyen is currently offline Luong NugyenFriend
Messages: 1
Registered: April 2020
Junior Member
Hi all,
I am working in my project, which i have some plugins defined in MANIFEST.MF
then i create some unit test using these plugins, everything fine when i run on Eclipse directly but when running by mvn then there is an error message :
Caused by: java.lang.ClassNotFoundException: XXX cannot be found by lib.Patch01

but in the reality the XXX class belongs to other library called lib2.Patch01.

Note : this only happens in junit test and run with mvn.
The production code run correctly, and junit with eclipse is fine too.

I don't know why this happen, i have got stuck with this nearly 2 days. It is a nightmare. Anyone knows this before, please help me.
Previous Topic:Eclipse download issue
Next Topic:Copy/Paste issue in Eclipse 4.8.0 in Citrix environment
Goto Forum:

Current Time: Tue Apr 16 20:19:59 GMT 2024

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

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

Back to the top