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
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
 
Similar Threads
How to implement Data Structure with custom methods
C++ to Java communication for Game Server
JNI crashes calling into C methods with structs
JNI - how do I access a C strucure from Java?
JNI mapping pointer to C++ structures to the java side (Really