Java, JNI and C++: How do I generate a header file from native method declarations? -


java, jni , c++: how generate header file native method declarations?

i have java project, communicates c++ code through jni. challenge need add new methods. first started declaring native methods in java code. need regenerate header file jni methods. work in eclipse, not sure how this.

i used using command line.

  • go source file directory.

  • javac filename.java generate filename.class file.

  • javah filename generate filename.h file.

you may refer javac , javah more help.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -