CSUF LogoCSUF Site Navigation
optics.csufresno.edu

F12 Multimedia-Based Applications & Setup Java

Department of Electrical and Computer Engineering
Associate Professor Gregory R. Kriehn
Forums
Wiki
F12 Java

Starting with Fedora 9, OpenJDK is now available directly (adapted from Sun Java):



Fedora 9 includes OpenJDK 6, an open source implementation of the Java Platform, Standard Edition. OpenJDK 6 is not yet Java compatible; work is underway to certify it.

Fedora will track Sun's stable OpenJDK 6 branch.




See the release notes for Fedora 9. Most applications using OpenJDK should work, but some may not. As a result, I still prefer installing JRE since OpenJDK is not yet fully compatible to Java.

Be sure that SELinux has been configured properly before starting (see the SELinux page).

Installing Java

Open your favorite web browser and go to Sun's download page for Java SE, which is located at:

http://java.sun.com/javase/downloads/index.jsp

Scroll down the page and look for the latest update to the "Java SE Runtime Environment (JRE)". Click on the Download button, choose Linux x64 under Platform, and click the button to accept the license agreement. Then click Continue. Choose the RPM link, which corresponds to jre-6u17-linux-x84-rpm.bin (as of this writing). After it downloads, execute the binary RPM using sh:

~> sudo sh ~/Downloads/jre-*-rpm.bin
Continue to press the spacebar until you scroll down to the end of the license agreement. Type "yes" and hit Enter. Wait for the RPM installation to complete.


Configuring Java for Other Applications

To configure java for additional applications, we will use the alternatives command:
~> sudo alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000
This configures JRE as an alternative to the generic javaimplementation that comes bundled with F12 and OpenJDK. The default version is given the lowest priority, to ensure that JRE will always be used first:
~> sudo /usr/sbin/alternatives --display java
To configure the Mozilla/Firefox browser plugin:
~> sudo alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so \ libjavaplugin.so.x86_64 /usr/java/default/lib/amd64/libnpjp2.so 20000
You are now able to install and run Java applications! To test it, restart Firefox, and go to http://www.java.com/en/download/help/testvm.xml.