Operating System - HP-UX
1833294 Members
3031 Online
110051 Solutions
New Discussion

/usr/lib/dld.sl: Can't shl_load() a library

 
SOLVED
Go to solution
Raghuram Iyer
New Member

/usr/lib/dld.sl: Can't shl_load() a library

Hi,

Java has been installed on my machine. When I enter

nmc% java -version
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /us
r/lib/libc.2
/usr/lib/dld.sl: Exec format error
java version "JavaVM-1.3.0.01"
Java(TM) 2 Runtime Environment, Standard Edition (build jinteg:02/14/01-23:51)
HotSpot VM (build 1.0.1fcs jinteg:02/15/01-02:43 PA2.0, mixed mode)
nmc%

I am not able to figure out why it is giving me error like shl_load(). Even when I use javac without any arguments, it gives me the same shl_load() error.

I am using HP-UX 11.00, L-Class server.

Thanks in Advance,
Regards,
Raghu
2 REPLIES 2
Chris De Angelis
Frequent Advisor
Solution

Re: /usr/lib/dld.sl: Can't shl_load() a library

Raghu,

Try installing patch PHSS_26262 (or its latest incarnation). This patch fixes the problem of not being able to dynamically load a shared library containing Thread Local Storage.

In general, you should install all patches required for Java listed at:

http://www.hp.com/products1/unix/java/infolibrary/patches.html

Good luck-
- Chris
lassehab
Advisor

Re: /usr/lib/dld.sl: Can't shl_load() a library

Hi Raghu,
try this
LD_PRELOAD=/opt/java1.3/jre/lib/PA_RISC2.0/classic/libjvm.sl

And, if does not resolve your problem, send me your SHLIB_PATH

Regards
I love Java OS