The moose likes Other JSE/JEE APIs and the fly likes JNI whithout changing the function named in C program Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "JNI whithout changing the function named in C program" Watch "JNI whithout changing the function named in C program" New topic
Author

JNI whithout changing the function named in C program

mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
Hi can anybody help me regarding this?
Say I want to call a C function from my java code.. I'll create a header file of my java program where the the proto type name of the the function will be mentioned something like JNI_EXPORT_*** and the function of my C code will be same like JNI_EXPORT_****..... But say if I wanna use an existing C program naturally ill not want to change the name of the C function and write some extra include "****.h" . So is it possible to call a C function without changing the name of the function.
Please help its urgent.
Thanks a lot in advance
 
 
subject: JNI whithout changing the function named in C program
 
Threads others viewed
Calling a Java program in a C program
Mapping C(void *) void pointer - JNI---- !!!URGENT!!!!
How to run a Java Function from the Command line argument
How do call the function from .dll file in java
JNI clarification
IntelliJ Java IDE