This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
two things to note: 1) you may have an /etc/profile.sh or /etc/profile.d/java.sh that sets up the jvm, so that may be where you want to make the change 2) redhat used to install a fairly old jdk by default in /usr/bin (i say 'used to' because i haven't run RH in a couple of years). so if the above stuff acts funny you can rpm-uninstall the redhat supplied one or just rename any /usr/bin/java, /usr/bin/javac, /usr/bin/jar, /usr/bin/javah etc