Setting the JBOSS_HOME variable

Setting the JBOSS_HOME variable

Setting the JBOSS_HOME variable in Linux.
Setting the JBOSS_HOME variable in Windows.

Setting the JBOSS_HOME variable in Linux.

Before you can run the JBoss Application Server, you need to ensure that you've configured the JBOSS_HOME environment variable in your .bashrc file as follows. In this example the Application Server folder has beeen copied to the /usr/jboss/jboss-<release> folder. The following is a .bashrc file used in this installation. Please ensure that your .bashrc file has a similar configuration.

[user@localhost ~]$ gedit .bashrc
        
# Source global definitions
if [ -f /etc/bashrc ]; then
/etc/bashrc
fi
......
# User specific aliases and functions
# The following are the environment variables for Java, ANT and JBoss

export JAVA_HOME=/usr/java/jdk1.6.0_07
export PATH=$PATH:$JAVA_HOME/bin
        
export ANT_HOME=/usr/ant/apache-ant-1.6.0
export PATH=$PATH:$ANT_HOME/bin

export JBOSS_HOME=/usr/jboss/jboss-<release>
export PATH=$PATH:$JBOSS_HOME/bin

To implement your .bashrc file changes run the following command.

[user@localhost ~]$ source .bashrc
[user@localhost ~]$

If no errors are displayed on your terminal, you are now ready to run your JBoss Application Server.

Setting the JBOSS_HOME variable in Windows.

  • Create an environment variable called JBOSS_HOME that points to the JBoss Application Server installation directory,      for example: C:\Program      Files\JBoss\jboss-<release>\.

  • In order to run JBoss Application Server from      the command line, add the jboss-<release>\bin directory to your path, for example: C:\Program      Files\JBoss\jboss-<release>\bin.      To do this, open the Control Panel from the Start Menu, switch to      Classic View if necessary, open the System Control Panel applet,      select the Advanced Tab, and click on the Environment Variables      button.

You are now ready to start the JBoss Application Server.