aspose file tools*
The moose likes Java in General and the fly likes JNI - how do I access a C strucure from Java? 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 - how do I access a C strucure from Java?" Watch "JNI - how do I access a C strucure from Java?" New topic
Author

JNI - how do I access a C strucure from Java?

Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
Supposing I had a C structure like

How can I access this from Java. I've read tutorials on JNI but they mostly just do a Hello,World style example. They never mention real world stuff. What I am going to do once I learn enough about JNI is write a wrapper around a C library so that I can access it from Java. This library has alot of structures so I need to know how to represent them in Java so that I can use them.
Thanks,
Frank
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNI - how do I access a C strucure from Java?