Red Hat java LoadLibrary Dependency Issues

J

Jared

I am using a PDF Prep Tool library (from www.pdf-tools.com) and it
seems to work just fine on Windows and AIX. I am currently trying to
use it with Red Hat 7.2, but I keep getting a
java.lang.UnsatisfiedLinkError with the message "undefined symbol:
__cxa_pure_virtual at java.lang.ClassLoader$NativeLibrary.load(Native
Method)".

I have created a very simple test program that just tries to load the
library and then exit. I continue to get this error. The library is
in my LD_LIBRARY_PATH and I have tried adding it to the path, and
classpath (figured it couldn't hurt). However, when I explicitly load
stdc++ (which is also in the same paths), using the System.LoadLibrary
method, right before I load the prep tool library no exception occurs.
(I used the ldd utility to find out what the prep tool library has as
its dependencies, but the stdc++ isn't one of them. The reason I
tried it stems from the fact that the website mentions that you need
to have it installed on a unix based system)
Why does that happen?

Unfortunately that is not an acceptable fix because this application
is meant to be platform independent.

Any suggestions would be greatly appreciated.
 
H

Harald Hein

Jared said:
Unfortunately that is not an acceptable fix because this application
is meant to be platform independent.

You have chosen a tool which is a native library. So you will never be
platform independent. The only solution is to find another, 100% Java
only library.

Frankly said, I can' understand why someone choses a native library at
all if one has a requirement to be platform independent. I mean PDF
Tools AG clearly states that you get a native library. And now you are
surprised?

HH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top