You can install Oracle Java 8 (JDK8 and JRE8) In Ubuntu 14.04, 13.10, 12.10, 12.04 and 10.04 Via PPA or Linux Mint machine easily
Add the webupd8team PPA repository and install Oracle Java 7/8 using the following commands:install Oracle Java 7sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
install Oracle Java8sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Check your installation with this command
java -version
or
javac -version
Switching between Oracle Java 7 and Oracle Java 8
Switch to Oracle Java 8 (from Oracle java 7)
sudo update-java-alternatives -s java-8-oracle
switch to Oracle Java 8 (from Oracle java 7)
sudo update-java-alternatives -s java-7-oracle
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。