Javah tool error: Could not find class file for hellojni

后端 未结 6 1250
無奈伤痛
無奈伤痛 2020-12-13 13:46

I am trying to create a header file using javah tool from command line on windows 7 OS but i am failing all the time.

I have followed different ways and even read t

6条回答
  •  囚心锁ツ
    2020-12-13 14:01

    On MacOS X, it required the classpath variable. This might be the solution if it can be verified on other platforms as well.

    $ javah -verbose Article.HelloJNICpp
    $ javah -verbose -classpath ./ Article.HelloJNICpp
    [Creating file RegularFileObject[Article_HelloJNICpp.h]]
    $ 
    

提交回复
热议问题