5.1. 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-4.2.2.GA
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.5.0_14 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-4.2.2.GA 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.