Eclipse Plugin Central

Plugin Design - Problem with classloader in plugins

cluster37 - May 06, 2008 - 04:37 PM
Post subject: Problem with classloader in plugins
Hi.

I am writing a Builder plugin. I want to create a new java file in the runtime workspace from 2 classes that the user select. To access these classes from their names, I have tried to use Class.forName("package.example.Test") but get ClassNotFoundException unless the class is within the plugin, or in a jar that is stored within the plugin project and the jar is exported. I have tried to use URLClassLoader to get a different classLoader than the one used by the plugin, but get no success.
Does someone knows how I can solve this problem?

Thank you in advance for your answers.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits