

‧ ESD1000 ‧ ACD100 ‧ ESD650 ‧ People Counter To remove Oracle Java, run this command in terminal #sudo apt-get remove oracle-java7-installer It should return something like this: #sudo apt-get remove oracle-java6-installer

Now, install Oracle Java: #sudo apt-get install oracle-java6-installer Or, change the number 7 to 6 or 8 to install Java6 or Java8.Īfter installation, run command to check if it was successful: #java -version It should return something like this: java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode) Then add the Webupd8 Team PPA repository and then reload the packages: #sudo add-apt-repository ppa:webupd8team/java #sudo apt-get update Verify that Java and the Java compiler have been properly installed: java -version javac -version. This package will run an installer for The OpenJDK 8, which is the latest LTS version available for Ubuntu 16.04 release. Install OpenJDK 8: sudo apt-get install openjdk-8-jdk. Installing the JDK Remove OpenJDK first if installed by this command: #sudo apt-get purge openjdk* Install the Main repository with apt: sudo apt-get update.
#Install jdk 6 ubuntu how to
If you need to use Oracle Java instead of OpenJDK in Ubuntu, this simple tutorial will show you how to install Oracle Java (JDK which includs JRE) 6 / 7 / 8 in Ubuntu 13.04 using the ppa repository. Oracle Java has been removed from the official Ubuntu repositories due to the new Java license. Install Oracle Java (JDK)6/7/8 in ubuntu 13.04
