Javah error while using it in JNI

前端 未结 14 1713
离开以前
离开以前 2020-12-01 05:27

Command:

javah -jni JavaHowTo

Result:

error: cannot access JavaHowTo 
class file for JavaHowTo not found

javadoc: error -          


        
14条回答
  •  醉话见心
    2020-12-01 05:53

    The following worked for me (Win7):

    javah -classpath bin/classes -jni -d jni com.my.javaclass
    

    I run this from the app main directory.

    The problem was in the sub-directory classes

提交回复
热议问题