Solved

Loading DLL Library in Java, JNI - UnsatisfiedLinkError

Posted on 2009-07-16
3
797 Views
Last Modified: 2012-05-07
Hi,

I am trying to load a dll file in Java. The dll file was created using the C and Header files using MinGW GNU.
The header file was generated using javah command. And, the C has JNI Export definitions corresponding to the functions definitions in the header file.
When trying to call a function in java, there is an "UnsatisfiedLinkError".
I've tried also doing static linking when generating the DLL file but did not help.

Thanks,
Raja
0
Comment
Question by:dolphin_g
  • 2
3 Comments
 
LVL 20

Expert Comment

by:a_b
ID: 24874915
How do you load the lib in java?
0
 

Author Comment

by:dolphin_g
ID: 24875160
using System.load();

It worked fine with other dll files. But this dll file that I generated using MinGW GNU compiler. It throws the unsatisfiedlink error

Thanks,
Rama
0
 

Accepted Solution

by:
dolphin_g earned 0 total points
ID: 24881168
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

809 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