I have a .dll library which exports a function in the following format:
_Java_folder1_folder2_folder3_JavaClassName_javamethodname@16
I cannot modify the .dll. It was given to me.
I need to write a java program to call the native javamethodname
. However, I have trouble generating the right header file. How can I generate a header file with the signature specified above?
I tried javah -jni JavaClassName, but it does not give me the desired result. When I call javah from inside the directory hierarchy, I get a header like:
Java_JavaClassName_javamethodname
When I try to call javah from outside the directory hierarchy, I get an error.
Also, how do I get the underscore in the header signature in front of Java? That is: _Java not Java.
Thanks!