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
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
Hi i am new to linux,
ReplyDeletei 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
Don't know if it is a bit late, but try doing directly in the command line $> export JAVA_HOME=/path...
Delete