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
ShamelessukAsked:
Who is Participating?
 
evgenygCommented:
Hello
1) Did you have ORACLE_HOME and location of OPath directory in your PATH variable?
2) Please run OPatch in debug mode then you'll collect more information:
  set environment variable OPATCH_DEBUG to be TRUE (how it depend on your SHELL and OS)
  (NOTE: This is set at the CMD Prompt.) and then run opatch command again

Evgeny
0
 
ShamelessukAuthor Commented:
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
0
 
evgenygCommented:
It seems you use OPatch version for SAP?
And your environment this is SAP env?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
ShamelessukAuthor Commented:
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
0
 
evgenygCommented:
And version of this java: /oracle/HED/920_64/jdk/bin/java  is?
You are installed java into : /opt/java1.5/ but for some reason use  /oracle/HED/920_64/jdk/
0
 
ShamelessukAuthor Commented:
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
0
 
evgenygCommented:
Probably correction is:
1) Add your fresh java installation to head of PATH variable.
Check that you got java from right location by running with java or just java -version (without ./)
2) add yours OPatch installation path and your ORACLE_HOME to PATH variable and then run the java command directly from the fresh installation location.
0
 
ShamelessukAuthor Commented:
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
0
 
evgenygCommented:
Once you use right java version it works, good for you :). For me usual the OPatch not working well because the oracle installations usual very dirty (copied, moved, relinked etc.)  In this case make the OPatch works not so simple as it looks like :)
Have good day
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.