What is the cause of an UnsatisfiedLinkError?

前端 未结 3 961
深忆病人
深忆病人 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:49

    From the Javadoc:

    Thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared native.

    It is an error related to JNI. loadJacobLibrary is trying to load the native library called jacob-1.14.3-x86 and it is not found on the path defined by java.library.path. This path should be defined as a system property when you start the JVM. e.g.

    -Djava.library.path=
    

    On Windows, the actual native library file will be called jacob-1.14.3-x86.dll while on Linux it would be called libjacob-1.14.3-x86.so

提交回复
热议问题