Class04 Answer:

On Linux install Oracle Java.

To install Java, I need to download jdk-8u162-linux-x64.tar.gz from Oracle:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

After the download, I install Java with the syntax listed below:

cd ~
tar xf ~/Downloads/jdk-8u162-linux-x64.tar.gz
ln -s jdk1.8.0_162 jdk
echo 'export JAVA_HOME=${HOME}/jdk'       >> ~/.bashrc
echo 'export PATH=${JAVA_HOME}/bin:$PATH' >> ~/.bashrc
bash
java -version

Class04 Lab


learn4.us About Blog Contact Class01 Class02 Class03 Class04 Class05 Class06 Class07 Class08 Class09 Class10 dan101 Forum Google Hangout Vboxen