LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install sun jdk 1.6 on redhat 6 (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-sun-jdk-1-6-on-redhat-6-a-4175438243/)

mohitvad 11-22-2012 03:26 AM

how to install sun jdk 1.6 on redhat 6
 
Hi,

Can anybody give me steps to download and install sun jdk 1.6 on Redhat 6 . because the machine itself cannot access internet but accessible on local network so i need to download the pkg and install.

Thanks,
Mohit

jamil.isayyed 11-22-2012 03:30 AM

Hi,

you can check this link to install it http://www.tecmint.com/install-jdk-j...-fedora-17-12/

have fun, do not hasitate to ask other questions

Thanks

jamil.isayyed 11-22-2012 03:31 AM

also this link can help u

https://access.redhat.com/knowledge/...vironment.html

knudfl 11-22-2012 04:17 AM

Package : jdk-1.6.0_37-fcs.<arch>.rpm

32bits (i386-i686) http://ftp.scientificlinux.org/linux...7-fcs.i586.rpm
> jdk-1.6.0_37-fcs.i586.rpm

64bits x86_64 http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm
> jdk-1.6.0_37-fcs.x86_64.rpm

1) su 2) yum localinstall --nogpgcheck jdk-1.6.0_37-fcs.<arch>.rpm

2)
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_37/bin/java 2

3) /usr/sbin/alternatives --config java
... And select the "Sun Java".

.


All times are GMT -5. The time now is 08:59 AM.