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
I also faced the same problem when trying to compile and generate the C/C++ header in two steps for a Java Native Interface (JNI) implementation (I suspect that is what your trying to do from the file names). What solved it for me was to merge the two steps into one using the following command:
javac YOUR_CLASS_FILE_NAME.java -h .
The dot (.) includes the current path. This command can only be run as of Java 8.