Solved

JNI and 3rd party dll's

Posted on 1998-06-30
3
367 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
ID: 1224191
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
ID: 1224192
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
ID: 1224193
Yes, I know the 3rd party vendor API.  Thank you for your response.  Excellent!
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JList custom Cell Renderer refresh 15 57
replace a word with other 1 44
xampp tool 12 49
Convert from a json string array to a Java object 3 32
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

773 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