Skip to main content
Version: 1.22.x.x Java 8 ELS

Environment configuration

The env.conf configuration file contains system level configuration. These are mostly properties required to start Java itself.

JAVA_HOME

As first priority, nevisLogRend uses the Java installation defined in the file env.conf using the configuration property JAVA_HOME. If the JAVA_HOME property is not defined in env.conf, the Java version as defined in the PATH environment variable is used.

To define the usage of a specific Java installation, we recommend setting the configuration property JAVA_HOME in the env.conf file:

Example
JAVA_HOME=/etc/alternatives/jre_1.8.0

JAVA_OPTS

Java system properties can be passed to nevisLogRend using the JAVA_OPTS property in the env.conf.

The JAVA_OPTS environment variable can be an expression that will be replaced.

Example 1 - using single quotes
JAVA_OPTS=(
'-server'
'-Dfile.encoding=${exec:echo UTF-8}'
)
Example 2 - using double quotes
JAVA_OPTS=(
"-server"
"-Dfile.encoding=\${exec:echo UTF-8}"
)
Old string syntax - cannot handle spaces in jvm arguments and inline comments
JAVA_OPTS="-server \
-Dfile.encoding=\${exec:echo UTF-8}"

Important: If you use double quotes the $ must be escaped.

For more on expressions see logrend.properties expression.