Overview

The Callgoose automation runner needs Java 17. Use OpenJDK 17 from your operating system, or Microsoft Build of OpenJDK 17 on Windows.

You need
Admin rights on the runner host
Where
The runner host
Result
Java 17 ready for the runner

Red Hat, Rocky, AlmaLinux, CentOS Stream

sudo dnf install -y java-17-openjdk
java -version

Debian and Ubuntu

sudo apt update
sudo apt install -y openjdk-17-jre-headless
java -version

If the host has several Java versions

Point the runner's user at Java 17. On Red Hat systems, alternatives --list | grep java shows the installed paths.

# in /home/cgautouser/.bash_profile
export JAVA_HOME=/usr/lib/jvm/jre-17
export PATH=$JAVA_HOME/bin:$PATH

Or use the full path in the service, for example ExecStart=/usr/lib/jvm/jre-17/bin/java -jar ....

Windows Server

  1. Download and install Microsoft Build of OpenJDK 17 (x64 or ARM).
  2. If other Java versions are installed, set JAVA_HOME to the JDK 17 folder in PowerShell as Administrator (adjust the folder name to the version you installed):
[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files\Microsoft\jdk-17.0.13.11-hotspot", "Machine")
$path = [Environment]::GetEnvironmentVariable("Path", "Machine")
[Environment]::SetEnvironmentVariable("Path", "$env:JAVA_HOME\bin;" + $path, "Machine")
java -version

Open a new window and check java -version shows 17.