Solved

Loading DLL Library in Java, JNI - UnsatisfiedLinkError

Posted on 2009-07-16
3
799 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using unmanaged DLL from managed application 14 297
Problem to ASCII 1 215
Why is compiler in oracle server ? 9 91
Windows 2012 R2 -- create 3.5TB GPT from unallocated space ? 1 71
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

685 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