Managing Environment Variables

To install Infor Lawson Core Technology successfully, a number of environment variables must be set. To ensure that your system is set up correctly, create a script to manage variables. You will run the script before you start the installation.

Use the following example to create a script to manage and set environment variables that are required to install Lawson.

Add environment variables to the script

As you work through the pre-installation requirements, add required variables for your configuration to the script.

Example script for a Windows installation

Note: In the following script, substitute your Environment name for the LawEnvName variable, for example lsfprod1.
#For JAVA 
set JAVA_HOME=c:\JDK8
set LAW_JAVA_BIN=%JAVA_HOME%\bin
set LAW_JAVA_HOME=C:\JDK8
set PERL_HOME=c:\PERL
set PATH=%PERL_HOME%\bin;%JAVA_HOME%\bin;%PATH%

#For WebSphere Application Server
set WAS_HOME=c:\IBM\WebSphere\AppServer
set WAS_LOGS=%WAS_HOME%\profiles\LawEnvName\logs\LawEnvName_app

#If using optional IBM MQ
#set BPM_ADDTL_CLASSPATH=d:\ibm\WebSphereMQ\java\lib\com.ibm.mq.jar;d:\ibm\WebSphereMQ\
java\lib\com.ibm.mq.jar

#Added for database 

#If using SQL SERVER 2008
set MSSQL_HOME=c:\SQLServer 
set PATH=c:\SQLServer\100\Tools\binn;%PATH% 

#If using SQL SERVER 2012
set MSSQL_HOME=c:\SQLServer 
set PATH=c:\SQLServer\110\Tools\binn;%PATH% 

#If using SQL SERVER 2014
set MSSQL_HOME=c:\SQLServer 
set PATH=c:\SQLServer\110\Tools\binn;%PATH%

# If using ORACLE AND IBM Security Directory Server
#set PATH=c:\IBM\ldap\V6.2\bin;%ORACLE_HOME%\bin:;%PATH%