Setting the JAVA_HOME variable

Set JAVA_HOME for the required users.

About this task

The JAVA_HOME setting is best placed in the user's ~/.bash_profile, or similar profile file.

Note: If you are aware that non-default locations are used, then you must adjust accordingly the JAVA_HOME variable accordingly.

On the server to which you going to install the Predictive Insights Analytics component, for the IBM® Streams administrator, which by default is scadmin, set the JAVA_HOME variable.

Procedure

  • Ensure the version of Java that comes with IBM Streams is the one that is used at run time:
    1. Update the JAVA_HOME and PATH to match the new Java.

      For example:

      PATH=/home/scadmin/InfoSphere_Streams/4.2.0/java/bin:$PATH
      JAVA_HOME=/home/scadmin/InfoSphereStreams_Streams/4.2.0/java
      
      Note: Substitute the directory path if you installed IBM Streams to a different location.
    2. Add the JAVA_HOME and PATH variables to the ~scadmin/.bashrc and ~scadmin/.bash_profile files:
      export JAVA_HOME=<path>
      export PATH=$JAVA_HOME/bin:$PATH
  • If you are installing the Predictive Insights Analytics component as root, you must also set the JAVA_HOME variable to IBM Streams Java, as described in the previous step, for root user.