Operating System - Linux
1828227 Members
3099 Online
109975 Solutions
New Discussion

Re: Cannot run Java from swinstall script

 
SOLVED
Go to solution
Robert L. Russell
Occasional Contributor

Cannot run Java from swinstall script

Hello,

Our package installation installs a shell script (gen_ui_scripts) which it then runs during the postinstall. This script then calls java, but fails due to:

/usr/lib/pa20_64/dld.sl: Unable to find library 'libjvm.sl'.

When running this script from the command line it works fine. For debugging we are explicity exporting the SHLIB_PATH within gen_ui_scripts to include the location of libjvm.sl, but, it still fails.

Is there anything special about running under swinstall?

Thanks,

Bob
4 REPLIES 4
Don Wilt
Advisor
Solution

Re: Cannot run Java from swinstall script

I had the same problem with a WebMethods install. I had to do the following:
ln -s /opt/java1.4/jre/lib/PA_RISC2.0W/server/*.sl /usr/lib/pa20_64 Make sure to use the version of java needed by the install(java1.4 or java1.5). If you only the link the libjvm.sl you may take errors with other missing .sl's.
Steven E. Protter
Exalted Contributor

Re: Cannot run Java from swinstall script

Shalom,

The download of java may be incomplete.

There are no pre-requesites for java, however http://www.hp.com/go/java has a long list of recommendations concerning pre java patching.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: Cannot run Java from swinstall script

You may be running into a security issue. I.e. SHLIB_PATH is ignored when running as root?
Dennis Handly
Acclaimed Contributor

Re: Cannot run Java from swinstall script

>You may be running into a security issue. I.e. SHLIB_PATH is ignored when running as root?

setuid executables don't look at SHLIB_PATH.
See PHSS_34353 JAGaf79250. See dld.sl(5):
http://docs.hp.com/en/B2355-60127/dld.sl.5.html
Running Setuid Programs