JNI - “Cannot open include file: 'jni_md.h'”

后端 未结 5 1549
走了就别回头了
走了就别回头了 2020-12-18 17:32

This sample program is meant to call a native method written in C.

Java Code

class HelloWorld {

    private native voi         


        
5条回答
  •  [愿得一人]
    2020-12-18 18:25

    I had this issue once, my solution was actually to edit the jni.h's internal #include from "jni_md.h" to "win32/jni_md.h", although there is probably a less hacky way you are supposed to do it.

提交回复
热议问题