Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Can't modify the classpath at Runtime...
Can't modify the classpath at Runtime... [message #605044] Mon, 15 March 2010 10:35 Go to next message
Eclipse UserFriend
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

} catch (Throwable e) {
e.printStackTrace();
}
}
Re: Can't modify the classpath at Runtime... [message #605058 is a reply to message #605044] Tue, 16 March 2010 07:26 Go to previous message
Eclipse UserFriend
Adding jar's to a Plug-in project also caused me a lot of frustration in the beginning, but if you follow http://wiki.eclipse.org/Eclipse_Plug-in_Development_FAQ#I.27 m_using_third_party_jar_files_and_my_plug-in_is_not_working. . you shouldn't have any problems.
Previous Topic:Can't modify the classpath at Runtime...
Next Topic:Problem porting rcp app to eclipse 3.5 on OS x 10.5.8
Goto Forum:
  


Current Time: Tue Jul 08 19:54:38 EDT 2025

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

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

Back to the top