Solved

JNI and 3rd party dll's

Posted on 1998-06-30
3
374 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet  URL Rewriting 1 42
Apps blocked by Java 9 88
jdbc error in jsp application 20 64
tomcat administrtor 12 61
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

821 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