Configure Amazon Corretto

Use the steps below to update the environment and configure Amazon Corretto with Infor Lawson System Foundation.

  1. With a text editor, open %LAWDIR%\system\install.cfg.
  2. Update the following locations for Amazon Corretto:
    • JAVA_HOME

    • LAW_JAVA_BIN

    • LAW_JAVA_HOME

    For example:

    JAVA_HOME=E:\corretto\jdk1.8.0_212
    LAW_JAVA_BIN=E:\corretto\jdk1.8.0_212\bin
    LAW_JAVA_HOME=E:\corretto\jdk1.8.0_212
  3. Save and close the file.
  4. Update the enter.cmd file. Replace all instances of the Oracle JDK with Amazon Corretto, including values in the path variable. For instructions, see Add third party environment variables to enter.cmd.
  5. Update the environment. At the command prompt, type

    laconfig.exe

  6. From the Environments list, select your Infor Lawson System Foundation environment. Click Configure.
  7. On the Environment tab, update the following:
    LAW_JAVA_HOME

    Enter or browse to the Amazon Corretto directory. For example:

    E:\corretto\jdk1.8.0_212

    LAW_JAVA_BIN

    Enter or browse to the Amazon Corretto bin directory. For example:

    E:\corretto\jdk1.8.0_212\bin

  8. Click OK.
  9. Restart Infor Lawson System Foundation for the changes to take effect.
  10. Use the steps in Verify Java SDK requirements to verify the Corretto installation.