Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI question

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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic