Chapter 3. Prerequisites
3.1. Prerequisites for Installing the JBoss Enterprise SOA Platform
- A supported Java Virtual Machine
- A supported Java Development Kit (for running the quickstarts)
- A supported database server (needed to run the JBoss Server)
- Apache Ant 1.7 or later (needed to run the Database Schema Configuration Tool and deploy the JBoss ESB quick start examples)
- An archiving tool (such as FileRoller, ark or tar). (You need this to extract the contents of compressed files)
- JBoss Developer Studio 5.0. (Obtain it from the Red Hat Customer Portal at https://access.redhat.com/home)
3.2. Java Virtual Machine
3.3. Install Open JDK on Red Hat Enterprise Linux
Procedure 3.1. Install Open JDK on Red Hat Enterprise Linux
Subscribe to the Base Channel
Obtain the OpenJDK from the RHN base channel. (Your installation of Red Hat Enterprise Linux is subscribed to this channel by default.)Install the Package
Use the yum utility to install OpenJDK:yum install java-1.7.0-openjdk-devel
Verify that OpenJDK is Now Your System Default
To ensure that the correct JDK is set as the system default, login as root and run the alternatives command:/usr/sbin/alternatives --config java
Select /usr/lib/jvm/jre-1.6.0-openjdk/bin/javaSet javac/usr/sbin/alternatives --config javac
Select /usr/lib/jvm/java-1.6.0-openjdk/bin/java
3.4. Apache Ant
3.5. Install Apache Ant
Procedure 3.2. Installing Apache Ant on Red Hat Enterprise Linux
Download Apache Ant
Open a terminal and input this command:sudo yum install ant-trax
Install Apache Ant
EnterY
when prompted to do so by the installer.Add the ANT_HOME Environment Variable
vi ~/.bash_profile
.- Add the following line:
export ANT_HOME=/FILEPATH/ant
where filepath is the directory in which Apache Ant was installed. Save and exit vi.Example 3.1.
export ANT_HOME=/opt/apache-ant-1.8.2
Append the Ant installation's
bin
directory to the Path environmental variable.vi ~/.bash_profile
.- Add the following line and then save and exit vi:
export PATH=$PATH:$ANT_HOME/bin
Test the installation
Go back to your terminal and runant -version
. The output should resemble the following:[localhost]$ ant -version Apache Ant(TM) version 1.8.2 compiled on July 6 2011
Procedure 3.3. Installing Apache Ant on Microsoft Windows
Download Apache Ant
Download the latest Apache Ant binary release from http://ant.apache.org/.Extract Apache Ant
Extract the files to a preferred installation location such as:c:\Program Files\Apache\Ant\
Add the ANT_HOME Environment Variable
- Click on the.
- Open the.
- Select
- Create a new variable called
ANT_HOME
. - Configure the ANT_HOME variable so that it points to the Apache Ant directory.
Append the bin directory of the Ant installation to the Path environmental variable.
- Click on the.
- Open the.
- Select
- Edit thevariable and append the text:
;%ANT_HOME%\bin
Test the installation
Runant -version
in a command line terminal. The version number should appear.