Click to See Complete Forum and Search --> : calling 'c' function in java


GURURAJ BIRADAR
February 16th, 1999, 07:56 AM
IAM NOT ABLE TO CALL 'C' FUNCTION IN JAVA.IN 'CORE JAVA1.1:FUNDAMENTALS

(sunsoft press java series)VOL1',THERE IS TOPIC COVERING CALLING C IN JAVA,

I HAVE GONE THROUGH THE TOPIC BUT IAM NOT ABLE TO FOLLOW STEPS GIVEN IN

CORE JAVA.I WILL BE VERY THANKFUL YOU,IF YOU SEND ME AN EXAMPLE WITH DETAILED

EXPLANATION OF THE CODE YOU WILL BE SENDING AND PLEASE MENTION OTHER BOOKS.

PRESENTLY IAM WORKING IN RAFFLES SOFTWARE,IAM A BEGINNER(JAVA).IT WILL BE BETTER

IF YOU SEND ME THE SOLUTION IMMEDIATELY.

Amol Gokhale
February 22nd, 1999, 11:36 PM
Hi Gururaj,


To call C functions in Java u have to use JNI( Java Native Interface )

To get better idea of JNI calls follow this,


java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html


If u don't understand this then let me know ASAP

I'll send u some sample code that I have written.


I hope this will solve ur problem.


Amol.