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

前端 未结 4 492
慢半拍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条回答
  •  旧时难觅i
    2021-01-19 05:52

    Eclipse presents different ways to export JAR for a project. To have the native library (or libraries) available when running the exported JAR, choose "package required libraries in generated JAR" option.

提交回复
热议问题