Skip to content

Install Java

OpenBoxes 0.9.x is now built using Grails 3 which requires Java 8. Therefore, we must install a Java 8 Runtime Engine (JRE) or Java 8 Virtual Machine (JVM). The JVM is used for development and since we're not going to be doing any development on this server, it's safe to install the JRE. We also usually choose to install the headless version because we have no need for the graphical user interface (GUI) components included in the default packages.

Install Java 8 package

sudo apt install openjdk-8-jre-headless

Check Java version

java -version

You should see output similar to the following

java -version
openjdk version "1.8.0_432"
OpenJDK Runtime Environment (build 1.8.0_432-8u432-ga~us1-0ubuntu2~22.04-ga)
OpenJDK 64-Bit Server VM (build 25.432-bga, mixed mode)