- 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
- 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
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.
JAVA_HOMEto point to the directory where you installed Java and add
On Windows, add
JAVA_HOMESystem Variable under
Start -> Settings -> Control Panel
-> System -> Advanced -> Environmental Variablesand prefix the existing
%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.
- On Windows, add
java -versionprints the expected Java version
javacprints usage message
- This verifies that JDK is installed (vs. JRE)
Download packaged distribution
- Build from source
You can either download
How to build from source ?
- Get Ant from http://ant.apache.org/
Uncompress it in a directory like
ANT_HOMEto point to the directory where you installed Ant
%ANT_HOME%\bin(on Windows) to your
- unzip it
builddirectory and run
Once finished the binaries will be under
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
JBOSS_HOMEto the root folder of JBoss.
You can also add
%JBOSS_HOME%\bin(Windows) to your
PATHin case you want to run your server from the command-line
You will still have to secure JBoss services, before deploying it in production. More on this later.
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.