Installing Java 1.6 in Fedora - Quixotix/agenthon GitHub Wiki
Download the Java SE Development Kit 6 Update 35 from the Oracle SE downloads page. Grab the RPM version for your architecture.
Run the file:
sh jdk-6u35-linux-*-rpm.bin
Install using the alternatives
command.
alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_35/bin/java 20000
alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_35/bin/javaws 20000
alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_35/bin/javac 20000
alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_35/bin/jar 20000
Switch between Java 1.6 from Oracle and OpenJDK using alternatives --config
. For example:
alternatives --config javac