Red Hat java LoadLibrary Dependency Issues

Discussion in 'Java' started by Jared, Jul 8, 2003.

  1. Jared

    Jared Guest

    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.
     
    Jared, Jul 8, 2003
    #1
    1. Advertising

  2. Jared

    Harald Hein Guest

    "Jared" wrote:

    > 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
     
    Harald Hein, Jul 8, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sphenxes
    Replies:
    2
    Views:
    352
    Sphenxes
    Sep 5, 2003
  2. AJ
    Replies:
    0
    Views:
    395
  3. Replies:
    2
    Views:
    3,289
    Malte
    Sep 1, 2005
  4. Ramon F Herrera

    Red Hat, Sun finally buddy up on Java

    Ramon F Herrera, Nov 6, 2007, in forum: Java
    Replies:
    9
    Views:
    381
    =?UTF-8?B?QXJuZSBWYWpow7hq?=
    Nov 7, 2007
  5. Scott Navarre
    Replies:
    4
    Views:
    191
    Andrew Schultz
    Feb 28, 2004
Loading...

Share This Page