Friday, June 18, 2010

Installing Java1.6 on Oracle Enterprise Linux

Introduction

This is Part II of the following series:
  1. Setting-up Oracle Enterprise Linux on Oracle VM VirtualBox 3.2.4
  2. Installing Java 1.6 on Oracle Enterprise Linux
  3. Installing Weblogic 10.3.3 on Oracle Enterprise Linux
  4. Installing Oracle SOA Suite 11.1.1.3 on Oracle Enterprise Linux
  5. Configuring a new Oracle SOA 11.1.1.3 Domain on Oracle Enterprise Linux

Prerequisites

  1. Downloaded Java 1.6 installer for Linux.

Installation Steps

Login as root and create a new directory "java" in "/usr". Put in this directory your downloaded Java installer for Linux.
Right click inside the directory and select "Open in Terminal".
In the Terminal window, write like the following command:
sh jdk-6u20-linux-x64.bin
Keep pressing "Enter" until the end of the license agreement.
Enter "yes".
Enter.
A success page is launched.
Modify the environment variables file to add the "JAVA_HOME" and include the "JAVA_HOME/bin" in the "PATH" variable.
In the terminal enter the following:
nano /etc/profile
You should have the following lines:
JAVA_HOME=/usr/java/jdk1.6.0_20
PATH=$JAVA_HOME/bin:$PATH

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME
Save Changes.
Logout as root.

No comments:

Post a Comment