IBM Support

Setting environment entries in the WebSphere Application Server V8.5 Liberty profile

Technote (FAQ)


Question

How to set environment entries in the WebSphere Application Server V8.5 Liberty profile since there is no administrative console available?

Answer

Environment entries can be used to specify variables not specific to the WebSphere Application Server Liberty profile, but are defined by other elements as well. These variables tend to be operating system-specific and also include such variables as JAVA_HOME, WLP_USER_DIR, and WLP_OUTPUT_DIR.
WebSphere Application Server V8.5 Liberty profile
Within the Liberty profile these environment variables can be specified in the following two locations and support only KEY=value pairs. Shell and variable expansion are not supported:.

  • Runtime-Level file affecting all servers within the Liberty profile:

    <wlp.install.directory>/etc/server.env

  • Server-Level file affecting only a specific server within the Liberty profile:

    <wlp.install.directory>/usr/servers/<serverName>/server.env

If the server management script locates both of the server.env files, the contents of the two server.env files will be merged, with values in the the Server-Level file taking precedence over values in the Runtime-Level file.

If <wlp.install.directory>/etc/server.env and/or <wlp.install.directory>/usr/servers/<serverName>/server.env exists and is readable, its key=value contents are read and set into the environment. The file can be in ASCII or EBCDIC. Comments start with a '#' and go to the end of the line. Values that contain white space can be placed in double quotes. Any environment entries specified in this file will override entries from the initial environment.

For example:

# Use a specific Java binary
JAVA_HOME=/opt/ibm/java-i386-60/jre
# JAVA_HOME=c:\Java

Document information

More support for: WebSphere Application Server
General

Software version: 8.5, 8.5.5

Operating system(s): AIX, HP-UX, Linux, Solaris, Windows

Software edition: Liberty

Reference #: 1596484

Modified date: 15 June 2012