install - java 8 sdk on centos 6.5
TRANSCRIPT
Install – JAVA 8 SDK on CentOS 6.5blog.g4me.co.uk
Login With Putty
Use ‘su’ to gainroot privileges.
Download Install FileHere I’ve selected/usr/lib/jvm as thisis where yuminstalls open-java
wget --no-cookies \--no-check-certificate \--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; \oraclelicense=accept-securebackup-cookie" \"http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz"
Note last line of wgetdownloads the 64 bitversion of JAVA.
Change as required.
Unpack The Install
tar xzvf jdk-8u25-linux-x64.tar.gz
Setup Alternatives
alternatives –install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_25/bin/java 2
Set Global Environment Variable
You may need to re-boot for this variable to become active.
Install Completeblog.g4me.co.uk