aspose file tools*
The moose likes Java in General and the fly likes JNI question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JNI question" Watch "JNI question" New topic
Author

JNI question

Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
Lets say I have the following C code:

How can I call this from Java using JNI. More specifically how do I represent the structure myStruct in the java code? What about the pointer that this function takes, how do I deal with that? I wanna write a wrapper using JNI for a C library and it has plenty of situations like the one I mention above.
I'm using JDK 1.3
Thanks,
Frank

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNI question