General discussion

Locked

Create package of JNI function

By huyabin ·
Hi, there,

How are you doing?

I am developing a generic Java interface for on-line dictionary WordNet, whose functions were implemented in C. So I use JNI. I successfully got my JNI code to run, with one caveat. It works as long as I don't have a package statement in the .java file that calls the JNI. I have three programs for this interface:
TestWord.java: is a driver program which is generic interface.
WordNetFunc.java: is the java program that calls the JNI.
WordNetFunc.c: is the JNI function which call WordNet C functions.
I need to create package for this interface for robust and efficient use. After I put package statement in TestWord.java and WordNetFunc.java, nothing wrong about compile. But something wrong when I run: javah ?jni WordNetFunc or javah ?jni packagename.WordNetFunc. I got some sort of ?link not resolved? exception.

I really appreciate if I can get any idea about that.

Thanks

Yabin

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums