Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Java native methods, somebody please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java native methods, somebody please help" Watch "Java native methods, somebody please help" New topic

Java native methods, somebody please help

Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
Can somebody tell me how I can map a C structure to a Java object? What happens when there are pointers in the C structure. How do I map those?
I keep digging on the net but keep on finding those useless HelloWorld JNI examples. Is there any hopes to find a decent real world example of how to map legacy C code to java.
I wanna create a JNI binding to the a C library which is heavy with structures. I need to know how to map a Java class to a C structure.
Stephanie Grasson
Ranch Hand

Joined: Jun 14, 2000
Posts: 347
I have found the book
"The Java Native Interface: Programmer's Guide and Specification" by Sheng Liang to be pretty useful.
It is from "The Java Series" from Sun.
ISBN# 0-201-32577-2.
Hope this helps.
Consider Paul's rocket mass heater.
subject: Java native methods, somebody please help
Similar Threads
JNI Problem
JNI problem
JNI problem
Calling VB Dll In JAVA
regarding JNI