Java

This is two ways to install java, personally i just use the open source java as it provides all my needs and should be sufficient for most people.
The sun java is a bit harder to install, i used the latest version at time of writing this, however newer versions are continously being released to check the latest version available go here http://www.java.com/en/download/linux_manual.jsp and you will need to adjust the guide to suit that version but i shall try to keep this guide up to date.
However you install java a restart of your computer is needed for changes to take effect.


For open source java

 su -c 'yum -y install java-1.6.0-openjdk icedtea-web' 

 

For 32bit fedora (best to just copy paste intructions in a root terminal

To get into root in the terminal just do

su - 

 Now copy paste below

 yum -y install wget  expect
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=58116
mv jre-6u30-linux-i586-rpm.bin* jre-6u30-linux-i586-rpm.bin
chmod +x jre-6u30-linux-i586-rpm.bin
/usr/bin/expect -c \
        "set timeout -1; spawn ./jre-6u30-linux-i586-rpm.bin; sleep 1; send -- q\r; sleep 1; send -- yes\r; expect eof"
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000
/usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \ libjavaplugin.so /usr/java/default/plugin/i386/ns7/libjavaplugin_oji.so 20000
rm -rf jre*

Now restart computer (dont forget to close any open windows and save any documents etc)


For 64bit fedora (best to just copy paste intructions in a root terminal
To get into root in the terminal just do


su - 

 Now copy paste below

 yum -y install  wget  expect
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=58118
mv jre-6u30-linux-x64-rpm.bin* jre-6u30-linux-x64-rpm.bin
chmod +x jre-6u30-linux-x64-rpm.bin
/usr/bin/expect -c \
        "set timeout -1; spawn ./jre-6u24-linux-x64-rpm.bin; sleep 1; send -- q\r; sleep 1; send -- yes\r; expect eof"
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000
/usr/sbin/alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so \ libjavaplugin.so.x86_64 /usr/java/default/lib/amd64/libnpjp2.so 20000
rm -rf jre*

Now restart computer (dont forget to close any open windows and save any documents etc)