Love Linux (FEDORA20) 2--install Java Runtime Environment (JDK)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.