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

后端 未结 4 586
栀梦
栀梦 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:27

    Java 8 supports statically linked native libraries http://openjdk.java.net/jeps/178

提交回复
热议问题