2 Replies Latest reply on Aug 28, 2004 9:26 AM by mrchucho

    Native Library already loaded in another classloader

    mrchucho

      I'm successfully using JNI, but when I redeploy my war, I get a "Native Library jboss-3.2.3/bin/libCalculateNetVolume.so already loaded in another classloader" exception. I have my shared library in my $JBOSS_HOME/bin directory and I set "JAVA_OPTS: -Djava.library.path=bin". I'm loading the library with System.loadLibrary in a static block in my class. Like I said, it loads and works fine, but throws an exception when I redeploy. How can I avoid this situation?

      RMC