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.

Reply via email to