File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JNI question