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.



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



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



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



JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121


JBOSS_HOME=c:\opt\wildfly-17.0.0.Final


ANT_HOME=c:\opt\apache-ant-1.9.6


PATH=%PATH:%ANT_HOME\bin:%JAVA_HOME\bin




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.