ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Detlef Brendle" <detlef.bren...@canoo.com>
Subject classloader problems with dll
Date Thu, 19 Jul 2001 10:29:13 GMT
I compile a complete set of services ( one ant script calls several other
ant scripts)
If I run them separately it works allright -
However combined them together I get the following exception:
###################
libJNIExplorer.dll already loaded in another classloader
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1346)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1277)
        at java.lang.Runtime.load0(Runtime.java:698)
        at java.lang.System.load(System.java:797)
###################

I guess that two sub-ants try to load this dll file but the second process
cannot do so.
Can I split up the classloader and run the second ant-script who tries to
load this dll file in a complete different classloader?


detlef


Mime
View raw message