Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Can't modify the classpath at Runtime...
Can't modify the classpath at Runtime... [message #520835] Mon, 15 March 2010 14:35 Go to next message
Kyne is currently offline KyneFriend
Messages: 3
Registered: March 2010
Junior Member
Hello,

I'm working on an Eclipse Plugin (the plugin is based on GMF, but not the problem...)

In the first project, "cosa", I've created some classes that uses the Log4J library. When I launch them as a Java Application, everything works right.

In my second project, called "cosa.diagram", I've added a small action that will create one class from the first project. To test my action, I just launch my plugin as an Eclipse Application. I call the action from a custom menu, and boom...

java.lang.NoClassDefFoundError: org/apache/log4j/Logger


I don't now why this is happening... this is code from the action :
public void run(IAction action) {
...	
	Logger l = Logger.getLogger(this.getClass()); //WORKS !
	DeleteComponent.getInstance(); //NoClassDefFoundError, DeleteComponent is located in the "cosa" project
...
}


I've tried to add this in manifest :
Bundle-ClassPath: .,
 lib/log4j-1.2.15.jar


But it still doesn't work. Sad

[Updated on: Mon, 15 March 2010 15:01]

Report message to a moderator

Re: Can't modify the classpath at Runtime... [message #521066 is a reply to message #520835] Tue, 16 March 2010 11:26 Go to previous message
Sönke Holsten is currently offline Sönke HolstenFriend
Messages: 6
Registered: February 2010
Junior Member
Adding jar's to a Plug-in project also caused me a lot of frustration in the beginning, but if you follow this step-by-step instruction you shouldn't have any problems.
Previous Topic:Cannot attach source to plug-in dependency because "Source attachment: (None) - non modifiable
Next Topic:Can't modify the classpath at Runtime...
Goto Forum:
  


Current Time: Sun Sep 22 01:42:35 GMT 2024

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

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

Back to the top