WildFly HOME Directory is determined by the variable JBOSS_HOME.

Therefore, in order to set it on a Linux Machine you need to:

$ export JBOSS_HOME=/home/francesco/jboss/wildfly-17.0.0.Final

For Microsoft Windows, from the Windows Start Menu, select Settings, select Control Panel, select System, select Advanced, then select Environment Variables. Click New. In the Variable Name field, enter JBOSS_HOME. In the Variable Value field, enter the path to WildFly. Click OK to commit your entries, then click OK twice more to close the Environment Variables and System Properties windows, respectively.

Please notice that if you are trying to boot WildFly using a script (e.g. standalone.sh) which is not in the JBOSS_HOME a warning will be displayed:

$ ./standalone.sh 

   WARNING:  JBOSS_HOME may be pointing to a different installation - unpredictable results may occur.
   JBOSS_HOME: /home/francesco/jboss/wildfly-17.0.0.Beta1/
0
0
0
s2sdefault

Related articles available on mastertheboss.com

JBoss MBeans POJO

JMX MBean services are the core building blocks of the JBoss Appl

How to a dump of JNDI tree with JMX console ?

#2 JBoss Howto. This is the recipe of the day

How to configure JBoss to bind to a different IP ?

If you want to change the jboss.bind.address property use the&nbs

How to shut down JBoss from remote ?

JBoss recipe of the day

How to create multiple instances of an Mbean?

  Supposing you need two instances of an MBean, let's say one fo

JBoss classloader issues

By default JBoss (prior to version 3.2) uses a flat class loading