Installing Sun Java with Fedora/RedHat alternatives
Download java:
http://java.com/en/download/linux_manual.jsp?locale=en
Install with rpm:
rpm -Uvh jre-7u67-linux-x64.rpm
Set alternatives:
update-alternatives --install "/usr/bin/java" "java" "/usr/java/latest/bin/java" 1 \
--slave "/usr/bin/keytool" "keytool" "/usr/java/latest/jre/bin/keytool" \
--slave "/usr/bin/unpack200" "unpack200" "/usr/java/latest/bin/unpack200" \
--slave "/usr/bin/pack200" "pack200" "/usr/java/latest/bin/pack200" \
--slave "/usr/bin/rmid" "rmid" "/usr/java/latest/bin/rmid" \