how to make jni.h be found?

后端 未结 11 1184
轻奢々
轻奢々 2020-11-30 03:10

In Ubuntu 12.04, I have jdk7 from sun/oracle installed. When locate jni.h, it prints multiple locations

/usr/lib/jvm/java-6-openjdk-amd64/inclu         


        
11条回答
  •  有刺的猬
    2020-11-30 03:32

    None of the posted solutions worked for me.

    I had to vi into my Makefile and edit the path so that the path to the include folder and the OS subsystem (in my case, -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux) was correct. This allowed me to run make and make install without issues.

提交回复
热议问题