Link to home
Start Free TrialLog in
Avatar of Shamelessuk
ShamelessukFlag for United Kingdom of Great Britain and Northern Ireland

asked on

HP-UX 11i v2: What's this error? "Please make sure you are running OPatch with JRE version 1.4 or later."

I am trying to patch an HP-UX 11i v2 system and I have downloaded and applied the Java Runtime Environment 1.5 from the HP website.  I have updated my PATH variable so that it points to /opt/java1.5/bin and when I run "java -version" I get the following:
java version "1.5.0.15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.15-_12_jan_2009_08_47)
Java HotSpot(TM) Server VM (build 1.5.0.15 jinteg:01.12.09-14:34 IA64, mixed mode)

When I run "opatch lsinventory" I get the following:
========================================================
GENERIC OPATCH VERSION - FOR USE IN SAP ENVIRONMENT ONLY
========================================================
Please make sure you are running OPatch with JRE version 1.4 or later.
OPatch failed with error code 255

Can anyone tell me where I am going wrong?

Thanks,
Shamelessuk
ASKER CERTIFIED SOLUTION
Avatar of evgenyg
evgenyg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shamelessuk

ASKER

Hi,

The ORACLE_HOME variable is set, but the location does not appear in the PATH variable.  The OPatch directory is not shown in the PATH variable either, but I am running the opatch lsinventory command from the OPatch directory.
I have set the OPatch to debug and run opatch lsinventory again and the output is shown below:
_osArch is
========================================================
GENERIC OPATCH VERSION - FOR USE IN SAP ENVIRONMENT ONLY
========================================================
/oracle/HED/920_64/jdk/bin/java -cp ./ocm/lib/emocmutl.jar:/oracle/HED/920_64/oui/jlib/OraI
nstaller.jar:/oracle/HED/920_64/oui/jlib/xmlparserv2.jar:/oracle/HED/920_64/oui/jlib/share.
jar:/oracle/HED/920_64/oui/jlib/srvm.jar:./jlib/opatch.jar:./jlib/opatchutil.jar:./jlib/opa
tchprereq.jar:./jlib/opatchactions.jar -DOPatch.ORACLE_HOME=/oracle/HED/920_64 -DOPatch.DEB
UG=true -DOPatch.RUNNING_DIR=.   oracle/opatch/OPatch lsinventory

Please make sure you are running OPatch with JRE version 1.4 or later.

OPatch failed with error code 255

Thanks for your prompt attention.

Regards,
Shamelessuk
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

Yes, my environment is a SAP environment.
Does this make a difference?  AS far as I can tell, SAP is not involved yet.

Cheers,
Matt
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think you may be on to something here.  When I am in the /oracle/HED/920_64/jdk/bin directory and run the ./java -version, I get the following:

pwd
/oracle/HED/920_64/jdk/bin
./java -version

java version "1.3.1.17"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.17-050824-14:32)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.17-_24_aug_2005_17_38 IA64, mixed mode)

This does seem to be the problem.  Any ideas how to correct this?

Cheers,
Shamelessuk
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

Thanks for all your help.  I made the changes you suggested and it still failed.
However, I have done the following:
mv /oracle/HED/920_64/jdk /oracle/HED/920_64/jdk_orig
ln s /opt/java1.5 /oracle/HED/920_64/jdk

Now when I run opatch lsinventory I get told that no patches have been installed.  It looks like the problem has now been resolved.

Cheers,
Shamelessuk
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial