Running ./gradlew jar as detailed in the README is failing for me

Dan S <[email protected]> Fri, 16 May 2025 13:50:36 -0400
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <CANeOZMT3QUEo721+nJw-T1DXy4qzkfCoT=dWNb6axt7gF7G9ow@mail.gmail.com>
--0000000000001914c40635446c63
Content-Type: text/plain; charset="UTF-8"

I tried running ./gradlew jar from the command line to build the poi code
but I am encountering the following error

> Task :poi:compileJava9 FAILED

[Incubating] Problems report is available at:
file:///home/git/poi/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':poi:compileJava9'.
> Error while evaluating property 'javaCompiler' of task
':poi:compileJava9'.
   > Failed to calculate the value of task ':poi:compileJava9' property
'javaCompiler'.
      > Cannot find a Java installation on your machine (Linux
4.18.0-513.24.1.el8_9.x86_64 amd64) matching: {languageVersion=11,
vendor=any vendor, implementation=vendor-specific,
nativeImageCapable=false}. Toolchain download repositories have not been
configured.

What I don't understand is that I have Java 11 on the path. When I run java
--version I get
openjdk 11.0.23 2024-04-16 LTS
OpenJDK Runtime Environment (Red_Hat-11.0.23.0.9-2) (build 11.0.23+9-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.23.0.9-2) (build 11.0.23+9-LTS,
mixed mode, sharing)

Please advise.

--0000000000001914c40635446c63--