To use Cognos product documentation, you must enable JavaScript in your browser.

Changing the Version of Java Runtime Environment Used by Cognos 8 Components

Cognos 8 components require Java Runtime Environment (JRE) to operate. The current version provided with Cognos 8 is JRE 1.5.0. For more information about the supported JRE versions, see the Cognos Support Website (http://support.cognos.com).

Cognos Configuration and other Cognos 8 components use the JRE referenced by the JAVA_HOME environment variable. On Windows, if JAVA_HOME is not set, the JRE that is packaged with Cognos 8 components is used by default.

If you want to change your current JRE, some configuration changes are required. Changing may be appropriate in the following situations:

If you are using Cognos 8 components in an application server environment, follow the process in Configuring Cognos 8 for a Third-Party Application Server. The process includes steps for updating the Java environment.

Before you begin, ensure that Cognos 8 components are installed and that JRE you want to use is installed.

To change JRE versions, do the following:

      

Back up existing Cognos data and encryption keys, if required.

      

Updated the Java environment.

      

Import data to the content store, if required.

The tasks in this section are for a Cognos installation that uses Tomcat.

Back Up Existing Cognos Information

You must back up existing Cognos information if Cognos 8 components are running

Note: You must back up existing Cognos information within the working environment prior to upgrade.

Before configuring Cognos 8 components to run on the new application server or JVM, you must back up

To ensure the security and integrity of your Cognos data, back up the content store, configuration information, and cryptographic keys to a directory that is protected from unauthorized or inappropriate access.

Tip: To check if any cryptographic keys exist, look in the c8_location/configuration directory. Cryptographic keys exist if this directory includes the following subdirectories: csk, encryptkeypair or signkeypair.

Steps
  1. If data exists in the content store, start the Cognos 8 service and export the entire content store using the Deployment tool.

    For more information, see the topic about creating an export deployment specification in the Administration and Security Guide.

  2. In Cognos Configuration, from the File menu, click Export As and save the configuration information in a decrypted format. When naming the file, use a name such as "decrypted.xml".

    Export the data to a directory that is protected from unauthorized or inappropriate access because passwords are stored in plain text. You are prompted to acknowledge that the export is an unsecure operation.

  3. Stop the Cognos 8 service:

  4. Back up any existing cryptographic keys by saving the appropriate files and directories to an alternate location that is secure.

    The files are

    The directories are

  5. Delete the caSerial and cogconfig.prefs files and the three directories: csk, encryptkeypair, and signkeypair.

  6. Replace the c8_location/configuration/cogstartup.xml file with the file that contains the data exported from Cognos Configuration (for example, "decrypted.xml").

    Important: In the c8_location/configuration directory, the file must use the name "cogstartup.xml".

    The information in this file will be automatically re-encrypted using new cryptographic keys when you save the configuration in Cognos Configuration.

Update the Java Environment 

The Cognos security provider files must be located in the JVM environment for the new version of Java.

Cognos 8 cryptographic services use a specific .jar (Java Archive) file, named bcprov-jdknn-nnn.jar, that must be located in your Java Runtime Environment (JRE). This file provides additional encryption and decryption routines that are not supplied as part of a default JVM installation. To ensure security, the encryption file must be loaded by the JVM using the java extensions directory.

If you want to use your own JRE and have JAVA_HOME set to that location on Windows or if you are installing on UNIX, you may have to update the Java environment for the cryptographic services.

On Windows, you can set JAVA_HOME as a system variable or a user variable. If you set it as a system variable, it may be necessary to restart your computer for it to take effect. If you set it as a user variable, set it so that the environment in which Tomcat is running can access it.

If you do not have a JAVA_HOME variable already set on Windows or if JAVA_HOME points to a Java version that is not valid for Cognos 8, the JRE files provided with the installation will be used, and you do not have to update any files in your environment.

Steps
  1. Ensure that the JAVA_HOME environment variable is set to the JRE location.

    For example, to set JAVA_HOME to the JRE files provided with the installation, the path is c8_location/bin/jre/version.

  2. Copy the bcprov-jdknn-nnn.jar file from the c8_location/bin/jre/version/lib/ext directory to the Java_location/lib/ext directory.

  3. Start Cognos Configuration.

  4. Save the configuration.

    Cognos Configuration generates new keys and encrypts the data.

Import Content Store Data

If you exported the content store before changing the JVM, import the deployment to restore and encrypt the data using the new encryption keys.

Step