sudo apt-get install oracle-java8-installer sudo apt-get install oracle-java8-set-default sudo update-alternatives --config java sudo update-alternatives --config java java -version javac -versionAt the end of this file, add the following line, making sure to replace the highlighted path with your own copied path:
sudo vim /etc/environmentJAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/bin/java/"
echo $JAVA_HOME/usr/lib/jvm/java-8-oracle/jre/bin/java/
No comments:
Post a Comment