Can't modify the classpath at Runtime... [message #520835] |
Mon, 15 March 2010 14:35 |
Kyne 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.
[Updated on: Mon, 15 March 2010 15:01] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03698 seconds