dcsimg
Calling C function into java class using JNI
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vaishali_k
Posted On:   Thursday, May 30, 2002 03:09 PM


Hai


I want to call C functions into my java class using JNI.I have reffered to many books and articles, they are only saying how we can call c functions into java after modifing the DLL. But I have a third party Dll which I can't
modify.Can anyone tell me how to do this.It will be a great help.I need it very urgently.




Thanks,

Vaishali

Re: Calling C function into java class using JNI

Posted By:   Jorgen_Nordqvist  
Posted On:   Thursday, June 13, 2002 05:44 AM

Not sure what you mean by "call C-functions into my java class". Do you want to call a Java class from C? Or do you want to call a C-function from Java?

If you are trying to extend the DLL functionality, you should be able to wrap the DLL in C-code and just call C-functions in the wrapper which may delegate the call to the DLL if necessary.

Jorgen

About | Sitemap | Contact