Solved

JNI- invoking problem: UnsatisifedLinkError

Posted on 2004-04-17
3
260 Views
Last Modified: 2012-08-13

Hi,
I am using the JNI to load a shared library in C++ which has got reference to other C++ libraries. I am getting the following error while doing so.

/data2/usr/pvcs/cms_ac/cms/deliver/lib/libcreditdb.so: ld.so.1: /bin/../java/bin/../bin/sparc/native_threads/java: fatal: relocation error: file /data2/usr/pvcs/cms_ac/cms/deliver/lib/libcreditdb.so: symbol __1cLUtsDateTimeG__vtbl_: referenced symbol not found
java.lang.UnsatisfiedLinkError: /data2/usr/pvcs/cms_ac/cms/deliver/lib/libcreditdb.so: ld.so.1: /bin/../java/bin/../bin/sparc/native_threads/java: fatal: relocation error: file /data2/usr/pvcs/cms_ac/cms/deliver/lib/libcreditdb.so: symbol __1cLUtsDateTimeG__vtbl_: referenced symbol not found
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
        at java.lang.Runtime.loadLibrary0(Runtime.java:749)
        at java.lang.System.loadLibrary(System.java:820)
        at CreditEngineService.<clinit>(CreditEngineService.java:69)
        at CreditEngineInterface.main(CreditEngineInterface.java:40)
0
Comment
Question by:kanuaravind
3 Comments
 
LVL 2

Accepted Solution

by:
timbauer earned 150 total points
ID: 10853009
The poblem appears to be that loadLibrary cannot find the entry point it is looking for.
The native library was probably compiled incorrectly.
Make sure the function you are going to call is wrapped in an extern "C" block.


0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet doXXX methods 3 61
Groovy problem when using SOAPUI : DispatchException occurred 7 58
difference of if loops 23 60
MySQL  on Tomcat 8 67
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

789 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