Java/Ubuntu/JBoss/Oracle XE Part II: Installation

This is the second installment of part I of the previous blog.  It will deal with the implementation portion.  If you have not already done so, please read the previous post.

Background:

This stack is a great choice for corporate environments or for someone who wants to learn Oracle and the full J2EE stack.  Make sure that your Ubuntu Server is the 32 bit version.

Quick Downloads:

Install the JDK:

You have two choices for your jdk.  There’s an open source JDK, aptly named OpenJDK, a free-as-in-speech version of the jdk.  Most mid to large projects use the free-as-in-beer version.  Plus with Sun being pwned (sic) by Oracle, it makes sense.  That’s what I recommend for this exercise.  You can install Sun’s JDK via the command line, but I don’t like that route.  I only install the JDK via the command line if it’s the OpenJDK version.

  • Download the JDK here.  DO NOT CHOOSE any of the bundles.
  • Do choose Java SE Development Kit (pick the latest update).
  • Pick the Linux distribution (32 bit version).
  • It will be a .bin file and is an executable.
  • Run it from the command line.  You’ll have to agree to an SLA.  The result will be a folder.
  • Rename the folder to java.
  • Move the folder to your /opt folder.
  • Alter your .bash_profile, .bashrc or /etc/bash.bashrc file to include the following:
  • JAVA_HOME=/opt/java
  • PATH=$PATH:$JAVA_HOME/bin

Install JBoss:

  • Make sure you have unzip installed.  If not, type:   sudo apt-get install unzip.
  • Download JBoss here or from the sourceforge site.
  • It’s going to be a zip file.  Unzip it.  It will extract as a folder.
  • Rename the folder to jboss.
  • Move the jboss folder to /opt.

Install Oracle XE:

Refer to my previous blog on installing Oracle XE on Ubuntu Server (Jaunty), 32 bit version.

Conclusion:

There you have it.  A full implementation of the JBoss/Oracle XE stack.  Stay tuned for an implementation of Weblogic/Oracle XE stack.

References:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.