4.4.  Using the jbossas-* commands from any directory

4.4.  Using the jbossas-* commands from any directory

Most of the commands found in $JBOSS_HOME/bin have equivalents in /usr/bin with names like jbossas-command, where command is the original JBoss Application Server command name. So, for instance, there is a jbossas-run command that is available from any directory.

To use these commands, however, you must set two environment variables:

export JBOSS_HOME=/var/lib/jbossas
export JAVA_HOME=/usr/lib/jvm/java

where the value you give for JAVA_HOME is the location of your installed Java VM.