Java and the JVM (Java Virtual Machine) are necessary for many kinds of software, including [Tomcat](http://tomcat.apache.org/), [Jetty](https://www.eclipse.org/jetty/), [Glassfish](https://javaee.github.io/glassfish/), [Cassandra](http://cassandra.apache.org/) and [Jenkins](https://jenkins.io/). In this guide, we’ll install various versions of the Java Runtime Environment (JRE) and the Java Developer Kit (JDK) on your server using `apt`. Choose your operating system below to get started.
How To Install Java with Apt on Debian 11
How To Install Java with Apt on Debian 10
How To Install Java with Apt on Debian 9
How To Install Java with Apt-Get on Debian 8
How To Install Java with Apt on Ubuntu 22.04
How To Install Java with Apt on Ubuntu 20.04
How To Install Java with Apt on Ubuntu 18.04
How To Install Java with Apt-Get on Ubuntu 16.04