Operating System - HP-UX
1753543 Members
5482 Online
108795 Solutions
New Discussion юеВ

Re: Can't find path for shared library: libjvm.sl

 
feijoy
New Member

Can't find path for shared library: libjvm.sl

I have a simple java application 'listInfo', in this java application I use Runtime.getRuntime().exec("test.sh"), test.sh is a script to call another java application

when I run listInfo, I got the following error message..
/usr/lib/dld.sl: Can't find path for shared library: libjvm.sl
/usr/lib/dld.sl: No such file or directory
test.sh[18]: 15966 Abort.

while it is ok to run test.sh alone..

After some checking, I found the SHLIB_PATH is
/opt/java1.4/jre/lib/PA_RISC2.0:/opt/java14/lib/PA_RISC2.0/server:/opt/java1.4/jre/../lib/PA_RISC2.0..
the lib path is wrong indeed...

this variable should be set by /opt/java1.4/jre/bin/java

it is strange where did it get the path of 'opt/java14/lib/PA_RISC2.0/server'..

Do u have any idea of this problem, thanks in advance..
6 REPLIES 6
feijoy
New Member

Re: Can't find path for shared library: libjvm.sl

I am using HPUNIX B.11.11 9000/800
Kapil Jha
Honored Contributor

Re: Can't find path for shared library: libjvm.sl

Hello,
You can fix it but putting
export SHLIB_PATH=$SHLIB_PATH:/opt/java1.4/jre/bin/java

It must have been set by java installation ot some application m not very sure about it.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
feijoy
New Member

Re: Can't find path for shared library: libjvm.sl

I looked into anther server that is working normal, the SHLIB_PATH is
SHLIB_PATH:/opt/java1.4/jre/lib/PA_RISC2.0:/opt/java1.4/jre/lib/PA_RISC2.0/server:/opt/java1.4/jre/../lib/PA_RISC2.0

then I tried to export the SHLIB_PATH on the server with this problem.
export SHLIB_PATH = /opt/java1.4/jre/lib/PA_RISC2.0:/opt/java1.4/jre/lib/PA_RISC2.0/server:/opt/java1.4/jre/../lib/PA_RISC2.0:$SHLIB_PATH

the error msg is gone, but the java application is suspended.

So I guess, there is still something wrong with the java environment..

Java version \"1.4.2.10\"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2.10-060112-14:28)
Java HotSpot(TM) Server VM (build 1.4.2
1.4.2.10-060112-16:07-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode


Kapil Jha
Honored Contributor

Re: Can't find path for shared library: libjvm.sl

export SHLIB_PATH = /opt/java1.4/jre/lib/PA_RISC2.0:/opt/java1.4/jre/lib/PA_RISC2.0/server:/opt/java1.4/jre/../
lib/PA_RISC2.0:$SHLIB_PATH

I think this is not OK.
you should have run.
export SHLIB_PATH=$SHLIB_PATH:/opt/java1.4/jre/bin/java

And are you sure you error message disappear after running above command.I doubt.
echo $SHLIB_PATH.

ANyways u said ur java application suspended...it is giving some kindda error or what.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Sagar Sirdesai
Trusted Contributor

Re: Can't find path for shared library: libjvm.sl

Hi

Try adding the path to SHLIB_PATH and LD_LIBRARY_PATH variable.

export these 2 variable from your .profile file

Sagar
V. Nyga
Honored Contributor

Re: Can't find path for shared library: libjvm.sl

Hi,

>the error msg is gone, but the java application is suspended.

Well, you've changed your original SHLIB_PATH, I really believe it would have been better to expand the orginal, like some others already have described, than to change it.
Seems like you had a special installation of Java.

Try your old SHLIB_PATH and add the missed path.

HTh
Volkmar
*** Say 'Thanks' with Kudos ***