Install JDK 8 and 14.04jdk8 in Ubuntu 14.04

Source: Internet
Author: User

Install JDK 8 and 14.04jdk8 in Ubuntu 14.04

1. download the latest jdk installation, address: http://www.oracle.com/technetwork/java/javase/downloads/

2. Decompress jdk-8u20-linux-x64.gz and place it under/opt.

sudo tar zxvf ./jdk-8u20-linux-x64.gz  -C /opt

3. Configure Environment Variables

vim ~/.bashrc

Add the following content to the end of the file by shit + g

export JAVA_HOME=/opt/jdk1.8.0_20export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH

Exit save and run the following command to make it take effect

source ~/.bashrc

4. Configure the default JDK

Because some Linux systems already have their own JDK, we need to set the installed JDK as the default JDK. You can perform the following configuration.

sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_20/bin/java 300sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_20/bin/javac 300

Java-versionjavac

So far, JDK installation is complete.

 


Ubuntu1404 Installation

Like you, I installed these two systems. In Windows 7, I divided 60 GB of space for Ubuntu. I used ultraISO to burn the Ubuntu installation file to a USB flash drive, then start the USB flash drive in BIOS settings and use the USB flash drive to install Ubuntu on the computer. I used this method to install Ubuntu. To access the installed Ubuntu, I also installed EasyBCD in Windows 7. For me, if you want to install the latest Ubuntu system, you can format the space where Ubuntu is located in Windows 7 and clear the startup items of Ubuntu with EasyBCD, in this way, the old Ubuntu is completely removed. To install a new one, you have to burn the Ubuntu ISO file to the USB flash disk, enable the USB flash disk in BIOS, and then install the system from the USB flash disk.
 
How to install ubuntu 1404

Find an installation disk.

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.