Updating the Environment Configuration File

When you installed Lawson, an Environment configuration file /etc/lawson.env was created. You can use /etc/lawson.env to manage both Lawson and third party environment variables. All environment variables defined in /etc/lawson.env will be set when you execute a .cv command.

Add third-party environment variables to the Environment configuration file

  1. Using a text editor, open /etc/lawson.env.
  2. Update the file to include definitions for third-party environment variables, including:
    Variable Definition
    JAVA_HOME Path to the Java SDK installation for this Environment.
    LAW_JAVA_HOME Path to the Java SDK installation for this Environment.
    LAW_JAVA_BIN Path to the platform-specific Java executables.
    PERL_HOME Path to the Perl installation for this Environment

    COBDIR

    COBLIB

    Path to the COBOL compiler for this Environment

    COBDIR/lib

    PATH

    $COBDIR/bin

    $JAVA_HOME/bin:

    $LAW_JAVA_BIN

    $PERL_HOME/bin

    C compiler/bin

    Database_HOME/bin

    Shared library path

    Shared libraries for the following:

    Operating system

    $JAVA_HOME/lib

    $COBDIR/lib

    Database shared libraries

    /usr/mqm/java/lib (MQSeries users only)

    WEBDIR

    Location of the document root directory for the web server.

    Example

    /lsfprod1/web

    WAS_HOME

    WebSphere installation directory

    Example

    /IBM/WebSphere/AppServer

    WAS_LOGS

    Location of WebSphere log files for your Environment

    Example

    $WAS_HOME/profiles/lsfprod1/logs/lsfprod1_app

    IHS_HOME

    HTTP Server installation directory

    Example

    /IBM/IBMIHS

    Database_HOME Database installation directory
    BPM_ADDTL_CLASSPATH (MQ Series users only) /MQInstallDir/java/lib/com.ibm.mq.jar:/MQInstallDir/java/lib/connector.jar
  3. Save the /etc/lawson.env file.
  4. Set the environment variables.

    . cv LawEnvName

  5. Stop the Lawson system

    stoplaw

  6. Start the Lawson system

    startlaw