Friday, November 23, 2012

JRockit Installation on Oracle Linux 6.3 (64 Bit)

This post will show you how to install JRockit on Oracle Linux 6.3 (64 bit). Although this tutorial uses an out of date JRockit, the installation process should be the same for later versions.

Download Link: http://www.oracle.com/technetwork/middleware/jrockit/downloads/index.html
File: jrockit-jdk1.6.0_33-R28.2.4-4.1.0-linux-x64.bin
Java Version: 6 Update 33

Set the permissions of the file and then execute the file.
chmod 700 jrockit-jdk1.6.0_33-R28.2.4-4.1.0-linux-x64.bin
./jrockit-jdk1.6.0_33-R28.2.4-4.1.0-linux-x64.bin

The screenshots given below will walk you through the installation process.
Installation Directory:/home/oracle/java/jrockit64

This is the welcome page for the JRockit Installation. Click next.

Specify the directory for the java installation.

The demos, samples, and source code are optional component. They are not needed for installation.

The installation should be relatively quick.

This displays a message that JRockit has successfully installed.

After installation is completed, modify the oracle user's bash profile.
vi ~/.bash_profile

Add/Modify the following lines given below:
JAVA_HOME=/home/oracle/java/jrockit64
PATH=$JAVA_HOME/bin:$HOME/bin:$PATH
export JAVA_HOME PATH

Update bash profile for current terminal session or logout in order to use the updated bash profile for every session:
source ~/.bash_profile

Verify that you are using the java that JRockit provided with the following command:
which java

Verify that java works:
java -version

2 comments:

  1. Hi i am new to linux,
    i tried replacing the bash profile and executed the source command again, its throwing error as below:
    source ~/.bash_profile
    JAVA_HOME=/scratch/aime/jrockit-jdk1.6.0_45-R28.2.7-4.1.0: Command not found.
    PATH=/scratch/aime/jrockit-jdk1.6.0_45-R28.2.7-4.1.0/bin/bin:/scratch/aime/bin:/scratch/aime/jrockit-jdk1.6.0_45-R28.2.7-4.1.0/bin: Command not found.
    export: Command not found.

    Request your suggestions on this

    ReplyDelete
    Replies
    1. Don't know if it is a bit late, but try doing directly in the command line $> export JAVA_HOME=/path...

      Delete