Menu

Can JSTAF.jar provides the mechanism to unload its native library(JSTAF.dll)

2016-10-21
2016-10-21
  • Ganesh Markande

    Ganesh Markande - 2016-10-21

    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"

        Is it possible to provide JSTAF.jar to unload its dll while unregistering its JAR file
    
     
  • Ganesh Markande

    Ganesh Markande - 2016-10-21

    Why cant STAF takes care of unloading its native libraries while unregistering its jar file(JSTAF.jar file)

     

Log in to post a comment.