Have a look at: /opt/CiscoPrimeServiceCatalog and in the directory bin ,
open the file setEnv.sh and you should have something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/bin/bash #============================================================================== # Copyright (c) 1999, 2011, 2013 Cisco Systems, Inc. # All rights reserved worldwide. # # setEnv.sh - Sets up the environment for various command-line utilities. # #============================================================================== JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre export JAVA_HOME RC_HOME=/opt/CiscoPrimeServiceCatalog export RC_HOME JBOSS_HOME=/opt/CiscoPrimeServiceCatalog/wildfly-8.2.0.Final export JBOSS_HOME CONTROLLER_TYPE=$CONTROLLER_TYPE$ export CONTROLLER_TYPE |
and change the variable JAVA_HOME with the new path of your JAVA jre.
Tips
Use the command update-alternatives --display java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
java - status is auto. link currently points to /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/java /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/java - priority 1700101 slave keytool: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/keytool slave orbd: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/orbd slave pack200: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/pack200 slave rmid: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/rmid slave rmiregistry: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/rmiregistry slave servertool: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/servertool slave tnameserv: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/tnameserv slave unpack200: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/unpack200 slave jre_exports: /usr/lib/jvm-exports/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64 slave jre: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre slave java.1.gz: /usr/share/man/man1/java-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave keytool.1.gz: /usr/share/man/man1/keytool-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave orbd.1.gz: /usr/share/man/man1/orbd-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave pack200.1.gz: /usr/share/man/man1/pack200-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave rmid.1.gz: /usr/share/man/man1/rmid-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave rmiregistry.1.gz: /usr/share/man/man1/rmiregistry-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave servertool.1.gz: /usr/share/man/man1/servertool-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave tnameserv.1.gz: /usr/share/man/man1/tnameserv-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave unpack200.1.gz: /usr/share/man/man1/unpack200-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz Current `best' version is /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/java. |
Take the value following the Current ‘best’ version /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre