Eclipse Plugin Central

Forum Discussions - Plugin needs to load external class

nocontrol - May 05, 2008 - 08:25 AM
Post subject: Plugin needs to load external class
Hello all.
I wrote a plugin to analyze classes that are provided by the user via an input dialog.

My problem:
At compile time of the plugin i cannot know the classes or the folder they are stored.

If I try to load them at runtime with Class.forName(...) I get an ClassNotFoundException because the class isn't in the classpath, of course.

Does anybody know how to extend the plugin's classpath at runtime?

Kind regards
nocontrol
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits