See http://www.city-fan.org/tips/SunJava5OnFedora, http://www.city-fan.org/tips/SunJava6OnFedora and http://www.city-fan.org/tips/OracleJava7OnFedora.