5 5 1 Set the PATH Variable

Install LANSA on Linux

5.5.1 Set the PATH Variable

The PATH environment variable, which tells the system where to find programs to be run from the command line, should include entries pointing to LANSA Integrator programs for each user who will need to use them.

All LANSA Integrator programs except for JSMDirect and JSMProxy should be run from the ${INTEGRATOR_ROOT}/integrator/jsmadmin directory:

  • strjsm – starts the JSM Server. This should either be run as a background task or in a separate shell, and is usually run by the LANSA owner.

Each of these scripts also needs to be able to find the java command. This usually means including the bin directory of your Java installation in the PATH variable, unless it has already been installed in, for example, /usr/bin.

The login script of each LANSA user should be modified to include the appropriate entries, for example:

JAVA_HOME=...

PATH=$PATH:${INTEGRATOR_ROOT}/integrator/jsmadmin:$JAVA_HOME/bin

export JAVA_HOME PATH