In some situations you need to run applications developed in Oracle Java over Ubuntu.
If you try to do this with recommended open souce flavors like openjdk-8-jdk and/or openjdk-8-jre sometimes rise up errors or malfunctions.
You can correct this situations by installing original Oracle Java Version 7 or 8 doing this procedure in a terminal:
To install Oracle Java version 8, type:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
To install Oracle Java version 7, type:
sudo apt-get install oracle-Java7-installer
Check your system with this command:
java -version
Or:
javac -version
To switch between Java Oracle 8 and Oracle Java 7
Changes to Java 7 (from Java 8):
sudo update-java-alternatives -s java-7-oracle
Changes to Java 8 (from Java 7):
sudo update-java-alternatives -s java-8-oracle
Jorge Fernandes is Bachelor in Computer Science experienced in telecommunications, security, banking and programmer since 1984. He works in Valhala Networks focused on high-level decisions about scientific and technological policies and strategies of projects oriented to develop web and standalone applications, as well as smart solutions at mobiles. He always oriented to produce innovator products.