We are using JSTAF.jar file in our Java based automation. While Running the Tests i could see that JSTAF.jar file loads its native dll(JSTAF.dll)(The code is in STAFHandle.class file) using Static block. but its not unloading its dll while uninstalling the JAR files..
The problem here is, Since STAF.jar loads its native libraries, i am not finding its handle to unload the JSTAF.dll which is causing my test case failures with error
"Failures:
registerSTAF(com.isg.epo.staf.test): Native Library C:\STAF\bin\JSTAF.dll already loaded in another classloader
java.lang.UnsatisfiedLinkError: Native Library C:\STAF\bin\JSTAF.dll already loaded in another classloader"
Is it possible to provide JSTAF.jar to unload its dll while unregistering its JAR file
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
We are using JSTAF.jar file in our Java based automation. While Running the Tests i could see that JSTAF.jar file loads its native dll(JSTAF.dll)(The code is in STAFHandle.class file) using Static block. but its not unloading its dll while uninstalling the JAR files..
The problem here is, Since STAF.jar loads its native libraries, i am not finding its handle to unload the JSTAF.dll which is causing my test case failures with error
"Failures:
registerSTAF(com.isg.epo.staf.test): Native Library C:\STAF\bin\JSTAF.dll already loaded in another classloader
java.lang.UnsatisfiedLinkError: Native Library C:\STAF\bin\JSTAF.dll already loaded in another classloader"
Why cant STAF takes care of unloading its native libraries while unregistering its jar file(JSTAF.jar file)