Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » java.lang.LinkageError: loader constraint violation
java.lang.LinkageError: loader constraint violation [message #832568] Fri, 30 March 2012 09:42 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member

I have two pluins lets say A and B, B has added A in dependencies tab. Both A and B contains one external jar file in the class path.

But second plugin gives run time exception which is


Exception in thread "Thread-13" java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name


if i remove jar file from B(as A contains it and i have added A as dependency) then compiler give errors saying not able to recognize classes using that jar file..


Any idea?

Regards,
Re: java.lang.LinkageError: loader constraint violation [message #832703 is a reply to message #832568] Fri, 30 March 2012 13:31 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1441
Registered: July 2009
Senior Member
Plugin A has to export the package contained in the jar file so that plugin B can see it.
Previous Topic:Spring XSD Schema Problems
Next Topic:Eclipse RCP Text Editor Do Undo Mechanisö
Goto Forum:
  


Current Time: Sun Nov 29 23:58:35 GMT 2020

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

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

Back to the top