How to Install Java With Apt

Java and the JVM (Java Virtual Machine) are necessary for many kinds of software, including Tomcat, Jetty, Glassfish, Cassandra and Jenkins. 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.