Re: Error loading shared library
From: jimw (no_spam_at_sofla.com)
Date: 05/23/04
- Next message: Benjamin Gawert: "HP-UX terminfo and problems with "screen""
- Previous message: No Name: "Re: HP-UX v Linux"
- In reply to: jignaasu: "Re: Error loading shared library"
- Next in thread: Paul Sure: "Re: Error loading shared library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 22 May 2004 19:11:41 -0400
"jignaasu" <jignaasu@yahoo.com> wrote in message
news:1238ce7b.0405220234.7f2e4f99@posting.google.com...
> > I set my SHLIB_PATH as follows:
>
> you should build your program with SHLIB_PATH lookup enabled (linker
> +s option) or use chatr (chatr +s enable a.out).
I have done that; and get the message "Can't find class
java.lang.NoClassDefFoundError. (Wrong class path?)"
Not sure if it gets further or not.
The odd thing is that if I link in the libjvm.sl into my program, then it
works fine (still doing the dlopen/dlsym) - with or without doing chatr +s
enable.
But if I have libjvm.sl linked into my program and do chatr +s enable so
that it should follow SHLIB_PATH; and I move libjvm.sl to a different
location and correspondingly change SHLIB_PATH to point to that location, it
will again fail with the NoClassDefFoundError.
I think I recall seeing something about not being able to dlopen a .sl file
that uses Thread Local Storage and that libjvm.sl uses that mechanism. I am
able to do dlopen OK.
- Next message: Benjamin Gawert: "HP-UX terminfo and problems with "screen""
- Previous message: No Name: "Re: HP-UX v Linux"
- In reply to: jignaasu: "Re: Error loading shared library"
- Next in thread: Paul Sure: "Re: Error loading shared library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]