Configure JDK on Linux

Configure JDK

Decompression JDK to

1
/usr/lib/jvm

See if there is other optional Java

1
sudo update-alternatives --list java

Configure environment varible:

1
2
3
4
5
6
sudo gedit ~/.bashrc
## copy and paste
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_55
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:{JRE_HOME}/lib
export PATH=PATH

Success or Fail

1
java -version
Contents
  1. 1. Configure JDK
    1. 1.1. Decompression JDK to
    2. 1.2. See if there is other optional Java
    3. 1.3. Configure environment varible:
    4. 1.4. Success or Fail