i take it you did not know that java was already installed
cent uses OpenJDK ( icedtea) and 1.7 is the current
the old 1.6 ( 6u45) is deprecated and should not be used
if you are going to REPLACE the system DEFAULT openjdk with Oracle's java
you need to do quite a few things
see the cent6.6 software repos
Code:
su -
yum search icedtea
---- and also -----
yum search java
and the centOS wiki
-- very out of date -- use the CURRENT versions
http://wiki.centos.org/HowTos/JavaOn...ght=%28java%29
cent moved to the RedHat documentation
for the current RHEL7.0
https://access.redhat.com/documentat...erprise_Linux/