Install Oracle JRE/JDK on CentOS 6 (using the Shell)

Faced a problem while downloading JDK from the shell?
Yes, Oracle checks for cookies and here’s a small trick to install latest JDK right from oracle’s website:

wget --no-check-certificate --no-cookies --header "Cookie:" -O jdk-linux-x64.rpm ""

rpm -Uvh jdk-linux-x64.rpm

This entry was posted in Technical Docs. Bookmark the permalink.

Leave a Reply

Your email address will not be published.