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

Dan S <[email protected]> Fri, 16 May 2025 14:35:25 -0400
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <CANeOZMTPXD0AAGF3dZbzG158ATMxDtuXMtrspaTT6-bmPMEA1g@mail.gmail.com>
--0000000000005aaef80635450ce9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

NM it seems I did not have Java 11 configured correctly. After setting it
up correctly it build without issue.

On Fri, May 16, 2025 at 1:50=E2=80=AFPM Dan S <[email protected]> wrote:

> 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=3D11,
> vendor=3Dany vendor, implementation=3Dvendor-specific,
> nativeImageCapable=3Dfalse}. Toolchain download repositories have not bee=
n
> configured.
>
> What I don't understand is that I have Java 11 on the path. When I run ja=
va
> --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.
>
>

--0000000000005aaef80635450ce9--