Solved

JNI and 3rd party dll's

Posted on 1998-06-30
3
348 Views
Last Modified: 2012-08-14
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?
0
Comment
Question by:gumtowv
3 Comments
 
LVL 2

Expert Comment

by:aziz061097
Comment Utility
Do you atleast know the name of the functions or methods and their parameters ?
0
 
LVL 5

Accepted Solution

by:
msmolyak earned 100 total points
Comment Utility
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
 

Author Comment

by:gumtowv
Comment Utility
Yes, I know the 3rd party vendor API.  Thank you for your response.  Excellent!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now