Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Loading DLL Library in Java, JNI - UnsatisfiedLinkError

Posted on 2009-07-16
3
Medium Priority
?
807 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Suggested Courses

879 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