Linux : Installing JDK rpm

Create /usr/java

~]# mkdir /usr/java

Copy the rpm file to /usr/java directory
Change the permission of the rpm

java]# chmod a+x jdk-<version>-linux-i586-rpm.bin 

Install the JDK

java]# ./jdk-<version>-linux-i586-rpm.bin

Install packages

java]# rpm -iv  <package>

Set PATH

~]# vim /etc/profile

Add the following lines to the end of the file

JAVA_HOME=/usr/java/default; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH
Advertisements

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: