Showing results for 
Search instead for 
Did you mean: 

Java error on HP-UX 11.31

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
Error: could not find Java 2 Runtime Environment.

also please refer to link below...

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 Java2 1.4 SDK
Jdk15 Java 1.5 JDK
Joob 2.05.00 Java2 Out-of-box
Jpi14 Java2 1.4 Netscape Plugin
Jre14 Java2 1.4 RTE
Jre15 Java 1.5 JRE

What could it be wrong? Does the latest SDK/RTE solve this problem?
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.