How to install JBOSS Application Server

Installing JBoss Application Server

Getting and Installing Java

Download Java SE 6 JDK from http://java.sun.com/javase/downloads/index.jsp or http://java.sun.com/products/archive/ (for Java SE 5 JDK)

On UNIX run the installer or uncompress the distribution into a directory of your choice

On Windows, run the installer

Avoid installing Java into a directory that contains spaces or other special characters (e.g., under C:\Program Files)

You can choose not to install "Public JRE", demos, and source components

Configuring Java

Set JAVA_HOME to point to the directory where you installed Java and add $JAVA_HOME/bin to your PATH

On Windows, add JAVA_HOME System Variable under Start -> Settings -> Control Panel -> System -> Advanced -> Environmental Variables and prefix the existing PATH variable with %JAVA_HOME%\bin;

On UNIX-like systems, make these changes in your shell’s configuration file (e.g., ~/.bashrc): export JAVA_HOME=/path/to/java-install-dir and export PATH=$JAVA_HOME/bin:$PATH

Learn the core features of JBOSS Traning and become a master with our expertise tutorials.

Testing JAVA

Test that java -version prints the expected Java version

Test that javac prints usage message

This verifies that JDK is installed (vs. JRE)

Getting JBoss Application Server

Download packaged distribution

http://www.jboss.org/jbossas/downloads

How to build from source?

Get Ant from http://ant.apache.org/

Uncompress it in a directory like C:\Ant

Set ANT_HOME to point to the directory where you installed Ant

Add $ANT_HOME/bin (on Linux), %ANT_HOME%\bin (on Windows) to your PATH

get jboss-<release>-src.tar.gz from http://www.jboss.org/jbossas/downloads

unzip it

Browse to build directory and run ant

Once finished the binaries will be under jboss-<release>.GA-src\build\output\jboss-<release>.GA

Installing JBoss Application Server

Unpack the compressed archive

This is the typical installation method because it is the easiest

Alternatively, install the source-built binary

Not a common installation method

Set JBOSS_HOME to the root folder of JBoss.

You can also add $JBOSS_HOME/bin (Linux) or %JBOSS_HOME%\bin (Windows) to your PATH in case you want to run your server from the command-line.

For an indepth understanding on JBoss click on: