Solved

JNI and 3rd party dll's

Posted on 1998-06-30
3
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

628 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