Setting a custom classloader for my plug-in [message #811639] |
Fri, 02 March 2012 11:30  |
Eclipse User |
|
|
|
Hi,
Im trying to integrate an existing app into a Eclipse plugin. The app is using a custom classloader to download requested classes over the network. However im having problems to get the plugin to use the custom classloader. Is there any way to hook the custom classloader into the plug-in's classloader chain during start-up of the plug-in? What is the recommended approach when using custom classloaders?
All my attempts so far has resulted in the following exception:
Caused by: java.lang.ClassNotFoundException: my.downloaded.stuff.MgmtUtils
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal (BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
Regards
Mikael
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05800 seconds