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.
Thanks.
Previous Topic:Eclipse installation steps in Citrix for shared users (70+)
Next Topic:Copy/Paste issue in Eclipse 4.8.0 in Citrix environment
Goto Forum:
  


Current Time: Sat Dec 05 12:38:39 GMT 2020

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

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

Back to the top