We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

Shamelessuk
Shamelessuk asked
on
Medium Priority
883 Views
Last Modified: 2012-05-06
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
Comment
Watch Question

Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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
Commented:
It seems you use OPatch version for SAP?
And your environment this is SAP env?

Author

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
Commented:
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/

Author

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
Commented:
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.

Author

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
Commented:
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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.