Install JDK (Java) on Linux


Download java from Oracle site of Linux.
i downloaded jdk-7u45-linux-i586
Then import in server using the winscp
Then login putty and go to that jdk placed directory. and then login with root
1
2
3
[oracle@localhost ~]$ su root
<em id="__mceDel">Password:
Then Run the following command
1
2
3
4
5
6
7
8
9
10
11
12
[root@localhost oracle]# rpm --install jdk-7u45-linux-i586.rpm
Unpacking JAR files...
 rt.jar...
 jsse.jar...
 charsets.jar...
 tools.jar...
 localedata.jar...
 jfxrt.jar...
 plugin.jar...
 javaws.jar...
 deploy.jar...
[root@localhost oracle]# ls -l
Then Set the java path
1
2
[root@localhost oracle]# export JAVA_HOME=/usr/java/jdk1.7.0_45
[root@localhost oracle]# export PATH=$PATH:/usr/java/jdk1.7.0_45/bin

Comments