i want to ask if there is any possibility how to map C struct to Java using JNI. I need to move some data provided in struct to Java application using JNI.

Alexander Krapf

Hi Jan,

you're out of luck looking for a standard JNI way of doing this. There are some unsupported or lightly supported widgets out there that might help you (I remember reading about a tool called structConv, but I don't remember where).

Rob Gordon's book on JNI includes an example of how to tackle this problem, so you might want to check it out.

We're working on this and related functionality for our JunC++ion product, but we do not have anything release-ready yet. If you're interested nevertheless, you can check out JunC++ion at http://www.codemesh.com.

Good luck,

Alex

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact