Check if a dll library is already loaded? (Java)

前端 未结 2 1718
闹比i
闹比i 2020-12-17 15:13

In a Java program i am writing i make a jni call to a dll and load the library on startup as follows

static
{
   System.loadLibrary(\"LdapAuthenticator2\");
         


        
2条回答
  •  有刺的猬
    2020-12-17 15:44

    Check my answer to this question

    How do I get a list of JNI libraries which are loaded?

    The solution works, unfortunately the poster of the question seems to have problems with a non SUN compatible JVM or a too restrictive SecurityManager.

    Link to the sample POC source code.

    List loaded JNI libraries java sourcecode

提交回复
热议问题