HomeЛюди и блогиRelated VideosMore From: Tech Sam

How to install Java (the default JDK) on Ubuntu

0 ratings | 100 views
Ubuntu (16.04 / 17.10 / 18.04) Terminal Command sudo add-apt-repository ppa:linuxuprising/java sudo apt update sudo apt install oracle-java10-installer sudo apt install oracle-java10-set-default javac -version Install Oracle Java JDK 10 on Ubuntu 16.04 / 17.10 / 18.04 via PPA The easiest way to install Oracle Java JDK 10 on Ubuntu is via a third party PPA… To add that PPA, run the commands below sudo add-apt-repository ppa:linuxuprising/java After running the commands above, you should see a prompt to accept the PPA key onto Ubuntu… accept and continue Continue below to install Java 10… Step 2: Download Oracle Java 10 Installer Now that the PPA repository has been added to Ubuntu, run the commands below to download Oracle Java 10 installer…. the installer should install the latest Java JDK 10 on your Ubuntu machines. sudo apt update sudo apt install oracle-java10-installer When you run the commands above you’ll be prompted to access the license terms of the software… accept and continue.. JAVA JDK 10 Ubuntu install Step 3: Configure Oracle JDK10 as Default Set Oracle JDK8 as default, to do that, install the oracle-java10-set-default package. This will automatically set the JAVA env variable. sudo apt install oracle-java10-set-default The command above will automatically set Java 10 as the default… and that should complete your installation, you can check you java version by running following command. javac -version That’s it! You have successfully installed Oracle Java JDK 8 on Ubuntu 16.04 / 17.10 / 18.04 via PPA Enjoy!
Html code for embedding videos on your blog
Text Comments (0)

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.