Java setup for Linux and UNIX operating systems

Use this procedure to setup the Java™ samples on Linux® and UNIX operating systems.

Procedure

  1. Install a Java Development Kit (JDK). To determine the supported Java versions, see IBM Cognos Analytics 11.0.0 Supported Software Environments (http://www-01.ibm.com/support/docview.wss?uid=swg27047186). Select your product and product version and create a report for related software. Choose Development Tools under Supported software.
    The report that is generated lists the supported Java versions.
  2. Set the JAVA_HOME environment variable to point to the location where the JDK is installed.
  3. Edit installation_location/sdk/java/Common/CRNConnect.java by locating the line

    public static String CM_URL = "http://localhost:9300/p2pd/servlet/dispatch";

    and replacing localhost:9300 with the name and, if necessary, port number of your IBM® Cognos® dispatcher.

  4. If you want to compile all the samples, edit installation_location/sdk/java/build-samples.sh and change the lines
    CRN_HOME=/usr/cognos/xxx
    JAVA_HOME=/c/j2sdk1.5

    so that they point to the locations where JDK and the IBM Cognos Analytics with Watson server and the JDK are installed, respectively.

  5. If you want to compile individual samples, edit installation_location/sdk/java/sample_name/build.sh and change the lines
    CRN_HOME=/usr/cognos/xxx
    JAVA_HOME=/c/j2sdk1.5

    so that they point to the locations where JDK and the IBM Cognos Analytics with Watson server and the JDK are installed, respectively.

  6. Compile the Java samples by running build-samples.sh (to compile all samples) or build.sh (to compile an individual sample).