[kepler-dev] Mechanism for setting Java endorsed dirs for module

Tomasz Żok tzok at man.poznan.pl
Fri Jan 18 02:29:54 PST 2013


Dear Kepler Team,

I am developing a module which requires a correct setting of java.endorsed.dirs
property. It is a JVM setting so it is not sufficient to add a line in:
    mymodule/resources/system.properties/endorsed.properties

I have found that there are two possibilites:
    1. ant run -Dproperties=java.endorsed.dirs=<...>
    2. ant run -Dmodule=mymodule

However both of them will modify java.endorsed.dirs globally for the whole JVM.
Is there a possibility to specify it in a way that only a single module is
affected? There is a method to enforce a different classloader for a module so
maybe this can be used somehow?

Generally I think it would be nice to have a feature that java.endorsed.dirs is
totally configurable by module. Developer would be then responsible for
configuring it inside of his module/resources/. Is this at all possible in the
current way Kepler loader works? Or maybe Java itself disallows such thing?

Best regards,
Tomasz Zok


-- 
Tomasz Zok
Poznan Supercomputing and Networking Center


More information about the Kepler-dev mailing list