Operating System - HP-UX
1753988 Members
5785 Online
108811 Solutions
New Discussion

Java error on HP-UX 11.31

 
Jason Ng Teng Po
Frequent Advisor

Java error on HP-UX 11.31

Hi guys,

I entered this command
$ /opt/java1.4/bin/java -pa20

and it gave me the following error message

Error: could not find libjava.sl
Error: could not find Java 2 Runtime Environment.

also please refer to link below...

http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=c935c7b31d779110VgnVCM100000275d6e10RCRr

I did a swlist and confirmed that my java(s) are installed.


dbspeks1:/#swlist -l product |grep -i java
ISEE-Java A.01.40.28 RST Java Runtime 1.4
Jdk14 1.4.2.17.00 Java2 1.4 SDK
Jdk15 1.5.0.11.00 Java 1.5 JDK
Joob 2.05.00 Java2 Out-of-box
Jpi14 1.4.2.17.00 Java2 1.4 Netscape Plugin
Jre14 1.4.2.17.00 Java2 1.4 RTE
Jre15 1.5.0.11.00 Java 1.5 JRE

What could it be wrong? Does the latest SDK/RTE 1.4.2.20 solve this problem?
1 REPLY 1
Sandeep_Chaudhary
Trusted Contributor

Re: Java error on HP-UX 11.31

export PATH=$PATH:/opt/java1.4/bin
or/and set JAVAHOME variable.
export JAVAHOME=/opt/java1.4

run chatr on the java executable to check that SHLIB_PATH is enabled. also if you are using patch PHSS_28434 or PHSS_28436, there is a problem in the dld, due to which the dld cannot load libraries even if they exist in the search paths. this bug is fixed in later patches, so you can take the latest patch PHSS_30048 (11.00) or PHSS_30049 (11.11).

if SHLIB_PATH lookup is not enabled, use "chatr +s enable" on the executable to enable it.

this is what i found after googling up.