“A JNI Error has occurred” for one instance of the program, not for another

前端 未结 4 486
慢半拍i
慢半拍i 2021-01-19 05:18

I made a large program in Eclipse Java Mars on one computer which worked fine. I exported the program as a runable Jar-file and running it gave no problem whatsoever. Even w

4条回答
  •  生来不讨喜
    2021-01-19 06:11

    JNI means Java Native Interface, meaning the application is trying to load a native library. Those native libraries are NOT part of a compiled jar file. Try to find out what native library is needed for your application, and wheter it is installed on one but not the other machine. Also check your run configuration. Using JNI you need to set the -Djava.libary.path=<...> parameter to point to your native libraries.

提交回复
热议问题