Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic