Is it possible to link a static library to Java through JNI?

后端 未结 4 594
栀梦
栀梦 2021-01-05 07:02

Is it possible to build a HelloWorld.lib and load it to a Java application using JNI? Or it just works with shared libraries?

I couldn\'t find a clear answer on the

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-05 07:30

    It needs to be a dynamic library. Fortunately, you can build a dynamic library from a static one.

提交回复
热议问题