The Tutorial Show Step-by-Step How-to Install and Getting-Started with the Latest Oracle-Sun Official Java JDK 7 Release for Linux Fedora 18 Gnome3 x86_64 Desktop.
After Installing you will need to Use the update-alternatives Tool to Update your System Java to Sun SE JDK 7.
Take Note: At the Same Time I'm also Illustrating here the Easiest Way of Installing the New Downloaded .rpm Packages with Dependencies on Fedora 18 Gnome3 Desktop :)
The Screenshots of Installation Correspond to the Install on a Fedora 18 Gnome Desktop but the Procedure on KDE, Xfce, Lxde... Should be Near Identical.
So Take the Time of Carefully Reading and Executing the Instructions Contained Here and All should Work Like a Summer Breeze :)
-
Download Oracle-Sun Java SE JDK 7:
- Double-Click on Archive and Extract into /tmp
- Open Terminal Window
- Relocate Oracle Java JDK7
su
mv /tmp/jdk1.7* /usr/lib/jvm
- Updating System Java to Oracle JDK7
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.*/bin/java 1065
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.*/bin/javac 1065
update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.7.*/bin/jar 1065
update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.*/bin/javaws 1065
Checking or Setting the System Java Version in Use with
update-alternatives --config java
To Switch of Java Version Just Enter the Reference Number on First Column. :)
-
Getting-Started:
Guides to Installing the Tomcat 7 Server on Linux: