Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to pass native struct to java

843829Sep 8 2005 — edited Jul 17 2008
Hey guys,

I've got a legacy C++ prog that outputs structs to a binary file & I've got a header file defining that struct.

I want to read the file and get the structs via java but I've never used any interface between the languages.
All I've managed to come up in my searches is "how to pass java objects to c", well how do I do the opposite?


Help appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2008
Added on Sep 8 2005
25 comments
1,481 views