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
- On the installation server, copy the file - example-environment.shincluded 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.
- 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}
- 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:
| Script | Command | 
|---|---|
| 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 | 
After you have set up the JAVA environment variables, you can prepare files with encrypted system passwords. Go to the Encrypting system passwords.