- 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
-
Avoid installing Java into a directory that contains spaces or other special characters (e.g. under
![]() | Note |
---|---|
While the "Public JRE" on Windows is not required by JBoss itself, having it installed will make it possible for your browsers to load the navigation applet which is part of JBoss' /web-console/ application. |
Set
JAVA_HOME
to point to the directory where you installed Java and add$JAVA_HOME/bin
to yourPATH
-
On Windows, add
JAVA_HOME
System Variable underStart -> Settings -> Control Panel
-> System -> Advanced -> Environmental Variables
and prefix the existingPath
variable with%JAVA_HOME%\bin;
. Re-open any existing "Command Prompt" windows for this change to take effect. -
On UNIX-like systems, make these changes in your shell’s configuration file (e.g.
~/.bashrc
):export JAVA_HOME=/path/to/java-install-dir
andexport PATH=$JAVA_HOME/bin:$PATH
-
On Windows, add
-
Test that
java -version
prints the expected Java version -
Test that
javac
prints usage message - This verifies that JDK is installed (vs. JRE)
Download packaged distribution
- Preferred
- Build from source
- http://www.jboss.org/jbossas/downloads
![]() | Note |
---|---|
You can either download |
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 yourPATH
-
get
jboss-<release>-src.tar.gz
from http://www.jboss.org/jbossas/downloads - unzip it
-
browse to
build
directory and runant
-
Once finished the binaries will be under
jboss-<release>.GA-src\build\output\jboss-<release>.GA
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 yourPATH
in case you want to run your server from the command-line
![]() | Important |
---|---|
You will still have to secure JBoss services, before deploying it in production. More on this later. |
![]() | Note |
---|---|
Even though this is supported, avoid installing/unpacking JBoss AS into a directory path that contains spaces or any other special characters. There is no requirement for for the installation directory to be owned by "root" (or any other privileged user). JBoss AS does not require super-user privileges, since none of the default ports are within the 0-1023 port range, which is considered privileged on many Unix-like systems. |