JNI and 3rd party dll's

Is it possible to use JNI to invoke from a JAVA program "C" functions on a 3rd party vendor dll?  I don't have access to the source code from which the dll originated.  If the answer is yes, can you please provide me detailed instructions on how to do this?
gumtowvAsked:
Who is Participating?
 
msmolyakCommented:
As long as you know the API of the third party DLL (as pointed to by aziz) you can do that by creating your own DLL whose functions on one hand are the implementations of Java native methods and on the other hand call the appropriate functions in the third party DLL. I've done it some time ago for ODBC where the ODBC driver is the third party DLL with the known API.
0
 
aziz061097Commented:
Do you atleast know the name of the functions or methods and their parameters ?
0
 
gumtowvAuthor Commented:
Yes, I know the 3rd party vendor API.  Thank you for your response.  Excellent!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.