JBoss.orgCommunity Documentation

Chapter 6. Setting the JBOSS_HOME variable

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

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
# 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>

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.

You are now ready to start the JBoss Application Server.