How to change eclipse plugin's default parent-first classloader policy to child-first classloader po

Posted by deepthinker121 on Stack Overflow See other posts from Stack Overflow or by deepthinker121
Published on 2010-03-03T07:10:27Z Indexed on 2010/05/06 9:38 UTC
Read the original article Hit count: 343

Filed under:
|

Hi All,

I want to change the behavior of eclipse's parent-first classloader policy to child-first classloader policy. The scenario would be :

Plugin A has class C in dependent external jar.

When the classloader of the jar looks for "META-INF" folder - it should find the META-INF folder of the jar and not the one found by its parent classloader - that is the plugin A's META-INF folder.

So I want to change the classloader policy to 'child-first' rather than 'parent-first'

Is it possible to do this by changing the plugin A's Manifest or plugin.xml?

© Stack Overflow or respective owner

Related posts about eclipse-plugin

Related posts about classloader