Menu

Unloading STAF.DLL when removing the plug of JSTAF.jar

2016-10-20
2016-10-20
  • Senthil Hari

    Senthil Hari - 2016-10-20

    Hi,

    We are using STAF in our automation project (in JAVA) which uses JSTAF libraries (JSTAF.jar ) for some automation piece which inturn uses and calls the APIs in JSTAF.dll (JNI calls). Now the situation arises that when we remove / unplug the JSTAF once our automation completes (with our webapplication still running) and the next time when we try to relaunch / retry the test which uses JSTAF.jar inturn, it throws error :

    registerSTAF(module name): 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

    Do we have any mechanism through which we can unload the JSTAF.dll (without shutting of the webapplication / staf either). If so, please share the same.

     

Log in to post a comment.