Install Java

LogScale is a Scala-based application that requires a JVM (Java Virtual Machine), version 17 or higher. We recommend using Azul's JVM, as it is well-tested for compatibility. For more information on selecting and configuring the JVM, see JVM Configuration.

  1. Import Azul's public key. This can be done by executing the following from the command-line:

    shell
    $ sudo apt install gnupg ca-certificates curl
    $ wget --no-check-certificate https://repos.azul.com/azul-repo.key
    $ sudo gpg --dearmor -o /usr/share/keyrings/azul.gpg azul-repo.key
  2. Add the Azul package to the apt certificate and repository and then update it:

    shell
    $ echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | sudo tee /etc/apt/sources.list.d/zulu.list
  3. Update the package information:

    shell
    $ sudo apt-get update
  4. Install the chosen version of Azul JDK:

    shell
    $ sudo apt-get install zulu21-jdk

With the repository in place, in the last line here, you can now install version 13.0.2 of Azul's Zulu JVM. When it's done, you can confirm that the JVM is installed by executing the first line below:

shell
$ java --version
openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment Zulu21.32+17-CA (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Zulu21.32+17-CA (build 21.0.2+13-LTS, mixed mode, sharing)

For more information on installing Azul JDKs, see Azul JDKs.