Search on this blog

Search on this blog

View Categories

2.4.5 System Environment Variables

1 min read

Set System Environment Variables #

In order to ease the installation process we recommend you set the following environment variables. The commands given throughout the document are based on the following environment variables defined on your machine.

Environment Variables

JAVA_HOME=the location of your Java JDK directory
JBOSS_HOME=the location of your Wildfly directory
ANT_HOME=the location of your Ant directory
PATH=add the path for your Java’s bin folder and Ant bin folder.
export Your Java, Wildfly and Ant Home Directories

Note

Changes to the system PATH variable are not necessary for servers running Windows. JAVA_HOME, JBOSS_HOME and ANT_HOME still need to be set.

Also the need to export the new variables is only required on Linux machines; it is not applicable to Windows.

Example Settings for Linux Machine #

Environment Variables

JAVA_HOME=/usr/java/default
JBOSS_HOME=/opt/wildfly-17.0.0.Final
ANT_HOME=/opt/apache-ant-1.9.6
PATH=$PATH:$ANT_HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export JBOSS_HOME
export ANT_HOME



Please proceed to the section called Set Variables on Linux Machine if you are unfamiliar with how to set the above system variables on your Linux server.

Example Settings for Windows Server #

Environment Variables

JAVA_HOME=C:Program FilesJavajdk1.8.0_121
JBOSS_HOME=c:optwildfly-17.0.0.Final
ANT_HOME=c:optapache-ant-1.9.6
PATH=%PATH:%ANT_HOMEbin:%JAVA_HOMEbin



Please proceed to the section called Set Variables on Windows Machine if you are unfamiliar with how to set the above system variables on your Windows server.