Solved

Loading DLL Library in Java, JNI - UnsatisfiedLinkError

Posted on 2009-07-16
3
795 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
Comment Utility
How do you load the lib in java?
0
 

Author Comment

by:dolphin_g
Comment Utility
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
Comment Utility
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion 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.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now