Mapping of C struct to Java using JNI
1 posts in topic
Flat View  Flat View

Posted By:   Jan_Seda
Posted On:   Friday, April 13, 2001 11:23 AM

Hi, 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.

Is there some JNI predefined type which i could use for that mapping?


Re: Mapping of C struct to Java using JNI

Posted By:   Alexander_Krapf  
Posted On:   Monday, April 16, 2001 10:15 AM

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,


About | Sitemap | Contact