Javah tool error: Could not find class file for hellojni

后端 未结 6 1267
無奈伤痛
無奈伤痛 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:11

    Suppose your class file is in D:/A folder cd your command prompt to folder A and run below command

    D:/A>javah -classpath . classfilename

    Here . will set the classpath to current directory and javah tool should be able to find your class file.

提交回复
热议问题