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.