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.