What is the cause of an UnsatisfiedLinkError?

前端 未结 3 951
深忆病人
深忆病人 2020-12-06 11:40

When i am trying to run my program it is giving the following error

       Exception in thread \"main\" java.lang.UnsatisfiedLinkError: no jacob-1.14.3-x86 i         


        
3条回答
  •  隐瞒了意图╮
    2020-12-06 11:52

    To quote http://www.velocityreviews.com/forums/t143642-jni-unsatisfied-link-error-but-the-method-name-is-correct.html:

    There are two things that cause UnsatisfiedLinkError. One is when System.loadLibrary() fails to load the library, the other is when the JVM fails to find a specific method in the library. The text of the error message itself will indicate which is the case...

    The error which you describe clearly cannot find the library at all. As the others have said, include it in your Java library path.

    The other error—when the library can be found but the method within the library is not found—looks as follows:

    java.lang.UnsatisfiedLinkError: myObject.method([Ljava/lang/Object;)V
    

    In this case you either have the wrong method name, or will have to go back and add the method and recompile the code...

提交回复
热议问题