How To Install Java with Apt on Ubuntu

Published: 23 January 2023
on channel: MivoCloud
218
41

Java and the JVM (Java’s virtual machine) are required for many kinds of software, including Tomcat, Jetty, Glassfish, Cassandra and Jenkins.

In this guide, you will install various versions of the Java Runtime Environment (JRE) and the Java Developer Kit (JDK) using apt. You’ll install OpenJDK as well as the official JDK from Oracle. You’ll then select the version you wish to use for your projects. When you’re finished, you’ll be able to use the JDK to develop software or use the Java Runtime to run software.

Commands Used
sudo apt update
java -version
sudo apt install default-jre
java -version
sudo apt install default-jdk
javac -version
scp Downloads/jdk-11.0.7_linux-x64_bin.tar.gz sammy@your_server_ip:~
sudo apt install software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EA8CACC073C3DB2A
sudo add-apt-repository ppa:linuxuprising/java
sudo apt update


Useful Links
VPS/VDS - https://www.mivocloud.com/
Packages Oracle - https://launchpad.net/~linuxuprising/...
Download Oracle - https://www.oracle.com/java/technolog...


Watch video How To Install Java with Apt on Ubuntu online without registration, duration hours minute second in high quality. This video was added by user MivoCloud 23 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 218 once and liked it 41 people.