Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Loading DLL Library in Java, JNI - UnsatisfiedLinkError

Posted on 2009-07-16
Medium Priority
Last Modified: 2012-05-07

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.

Question by:dolphin_g
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
  • 2
LVL 20

Expert Comment

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

Author Comment

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


Accepted Solution

dolphin_g earned 0 total points
ID: 24881168

Featured Post

Industry Leaders: 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

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…
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 recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

730 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