Because Fedora20 comes with OPENJDK, we first remove it from the band:
1) View the current JDK situation
# Rpm-qa|grep JDK
2) Uninstalling OpenJDK
# yum-y Remove Java java-1.7. 0-openjdk*
3) Download the JDK (I use this, we use what version can choose their own).
http://download.csdn.net/detail/hp_2008/6020687
4) Access your Fedora via Secure Shell client and upload files to/usr/local/.
5) Give it executable permissions (execution under current directory/usr/local/)
755 Jdk-1_5_0_06-linux-i586.bin
6) Start the installation (execution under current directory/usr/local/)
./jdk-1_5_0_06-linux-i586.bin
7) installation process encountered [yes/no]: Of course yes.
8) Configure Environment variables:
# Vi/etc/profile
Enter at the bottom: Export java_home=/usr/local/jdk1. 6 . 0_31export jre_home= $JAVA _home/jreexport CLASSPATH= $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/ libexport PATH= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOME/bin
9) Make the modified profile effective immediately
# Source/ect/profile
10) See if the installation was successful
# java-version
I said from the beginning that I borrowed a lot of people from the blog, not original. Just want to sort out the idea of deploying Linux (Fedora) yourself. If you have any comments and suggestions can communicate with me a lot oh.
Reference:
Http://www.linuxidc.com/Linux/2014-03/97523.htm
Http://www.cnblogs.com/kaituorensheng/p/3620311.html
Love Linux (FEDORA20) 2--install Java Runtime Environment (JDK)