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.