Configuring your environment to run IBM Spectrum Symphony workload using Java

Learn how to configure your environment to run IBM® Spectrum Symphony workload using Java™.

Procedure

  1. Set your JAVA_HOME and bin:
    1. Set your JAVA_HOME to point to the directory in which the JDK is located.

      For example, on Windows, if your JDK is installed to c:\java\j2sdk1.4.2, set your JAVA_HOME to this path.

      For example, on Linux®, if your JDK is installed to /opt/java/j2sdk1.4.2, set your JAVA_HOME to this path.

    2. Ensure your Java bin directory is included in your Path environment variable.
  2. Set your ANT_HOME and bin:

    If you are planning on using Ant to build the samples, set your ANT_HOME.

    1. Set your ANT_HOME to point to the directory in which you have installed Ant.
    2. Ensure your Ant bin directory is included in your Path environment variable.
  3. Change application profiles in your application to point to your Java installation:

    In cases where you cannot guarantee that the PATH environment variable on a compute host:

    • Includes a Java bin directory
    • Has the path to the Java bin directory for the Java version you want to use

    You can configure your system PATH to point to the correct Java version, or set the path to the correct version of Java in the application profile.

    Note: If you set the Java bin path in your application profile, all compute hosts must have Java installed in the same location. If Java is not installed at that location, the system uses the next Java location in the Path, if any.
    For example, on Windows:
    1. Open the application profile for sample application under IBM Spectrum Symphony Developer Edition: %SOAM_HOME%\version\samples\Java\SampleApp\SampleAppJava.xml
    2. In the Service, osTypes, osType section, change the PATH environment variable to point to the correct Java version:
       <Service description="The Sample Service" name="sampleService" 
      	packageName="SampleServiceJava">
          <osTypes>
            <osType name="all" startCmd="cmd.exe /c cmd.exe /c 
      ${SOAM_DEPLOY_DIR}/Runcom.platform.symphony.samples.SampleApp.service.MyService.bat" 
      workDir="${SOAM_HOME}/work">
            <env name="PATH">c:\Program Files\jdk1.5.0_04_x86\bin</env>
           </osType>
          </osTypes>
      </Service>
      
    3. Save the file.
    4. Register the application:
      soamreg SampleAppJava.xml