Configure jdk in Ubuntu(Install) the jdk in the oracle website.
2.extract the source code from the tar.gz
tar -zvxf ~.tar.gz
3.setup the enviroment variable
vim ~/.bashrc
4.Add following in the last line
export JAVA_HOME=/usr/local/java/jdk1.8.0_25(Specify your own path)
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
5.Save and Quit
source ~/.bashrc
6.Check if you set up successfully
java -version

Leave a Reply

Your email address will not be published. Required fields are marked *