IBM Support

Setting the PowerVP $JAVA_HOME environment variable to use Java 1.7

How To


Summary

PowerVP 1.1.3 requires Java 1.7 to run. If you have Java 1.8 installed on your system you can force Java 1.7 to be used by setting the $JAVA_HOME environment variable.

Objective

This document will demonstrate how to set the $JAVA_HOME environment variable to force PowerVP to use Java 1.7.
 

Environment

AIX 7.1 and PowerVP 1.1

This document assumes PowerVP has been installed to the /IBM/PowerVP directory.

Steps

When the PowerVP GUI is started from the command line : /launch-powervp

You may get this error if Java 1.8 is installed:

-javaagent:/IBM/PowerVP/PowerVP_Installation/PowerVP_GUI_Installation/wlp/bin/tools/ws-javaagent.jar: illegal argument
Usage: java [-options] class 

 If it is, you can set the $JAVA_HOME environment variable to point to Java 1.7. The PowerVP documentation says 1.7 is required, and it has not been tested on 1.8.

Run the command env | grep -i java to find a version of Java 1.7 which is installed. A customer found 1.7 was installed here:
/usr/java7_64/jre/bin

 
The JAVA_HOME environment variable is checked by the /IBM/PowerVP/PowerVP_Installation/PowerVP_GUI_Installation/wlp/bin/server script that starts PowerVP. And as $JAVA_HOME is an environment variable it needs to be set like:

export JAVA_HOME=/usr/java7_64/jre

NOTE: You do not need to add the "/bin" at the end. If PowerVP fails to start correctly make sure that you set the environment variable correctly by checking the log:

/IBM/PowerVP/PowerVP_Installation/PowerVP_GUI_Installation/wlp/usr/servers/powervp/start.log

Remember to copy the server.xml file from the /IBM/PowerVP/PowerVP_Installation/PowerVP_GUI_Installation/ directory

to /IBM/PowerVP/PowerVP_Installation/PowerVP_GUI_Installation/wlp/usr/servers/powervp/server.xml

You should then be able to start PowerVP with the ./launch-powervp command and access the PowerVP GUI with the URL: http://localhost:port/powerVPWeb/PowerVP.html

Going forward, the JAVA_HOME variable will need to be set right on the console that starts the PowerVP GUI. The system will not automatically restart the PowerVP GUI, so if that is desired an entry will need to be added to the /etc/rc.d/rc2.d directory. (This differs from the Agents, which do automatically add a start script.)

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXLMV","label":"PowerVP Standard Edition"},"Component":"","Platform":[{"code":"PF002","label":"AIX"}],"Version":"1.1.3","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Product Synonym

PowerVP

Document Information

Modified date:
19 September 2018

UID

ibm10719555