Skip to main content
Version: 2.10

Setting up JAVA environment variables

Before installing D1 and Conversion Service servers, you need to set up the JAVA_HOME environment variable and put the [JAVA_HOME]/bin on the PATH.

If Java directory is not yet added to the PATH on your machine, you can use example-environment.sh (Linux) or example-environment.bat ( Windows) script to do it.

To set up Java environment variables for the installation server

  1. On the installation server, copy the file example-environment.sh included in the installation package to a location of your choice. We recommend that you copy this script to the directory where your unzipped installation package is saved.

  2. Open the file in a text editor and set the respective values:

    #!/bin/bash
    # This is an example environment script which can be used as a template to easily create your own file.
    #
    # exit when any command fails
    set -e
    #
    # set Java installation path
    export JAVA_HOME=/path/to/jdk
    #
    # add Java's bin folder to the PATH variable
    export PATH=${JAVA_HOME}/bin:${PATH}
  3. When you set the values, save the script. It is now ready to be referenced by other scripts.

You will need to add the --environment /path/to/environment.sh part to the encryption, installation, and health check commands as shown in the following table:

ScriptCommand
Installation./install.sh --settings /path/to/installation-settings.yaml --environment /path/to/environment.sh
Encryption./encrypt.sh --value 'my-password' --environment /path/to/environment.sh
Health check./check-health.sh --url https://localhost:8443 --environment /path/to/environment.sh
Where to go from here

After you have set up the JAVA environment variables, you can prepare files with encrypted system passwords. Go to the Encrypting system passwords.