<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ah yes, you are running into one of the charming issues with using<br style="scrollbar-color: rgb(69, 74, 77) rgb(32, 35, 36);">gradle: namely, gradle is slow in supporting the latest JDKs.</blockquote><div><br></div><div>The newer gradle versions support the new Java versions rather quickly. Gradle supported JDK 25 already a couple of days later and Java 23 even before its release.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The easiest way is to use JDK 24.x (e.g., 24.0.2) to both run gradle and<br style="scrollbar-color: rgb(69, 74, 77) rgb(32, 35, 36);">build JavaFX. This is what we do.</blockquote><div><br></div><div> The right way to do it is to use the Gradle toolchain support to define a Java version to build with, which has been available since Gradle 6-7. Then the Gradle Java version and the JavaFX Java version are decoupled.</div><div><br></div><div>I understand that it's not worth doing any work on the Gradle files since they are planned to be replaced with the JDK's build system.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Oct 14, 2025 at 7:31 PM Kevin Rushforth <<a href="mailto:kevin.rushforth@oracle.com">kevin.rushforth@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ah yes, you are running into one of the charming issues with using <br>
gradle: namely, gradle is slow in supporting the latest JDKs.<br>
<br>
The easiest way is to use JDK 24.x (e.g., 24.0.2) to both run gradle and <br>
build JavaFX. This is what we do.<br>
<br>
If you need to use JDK 25 to build, you will need two JDKs: one to run <br>
gradle (JDK 24 or earlier) and another to use for building. Point <br>
JAVA_HOME to the JDK used to launch gradle and put it in your PATH. <br>
Point JDK_HOME to the JDK 25 that you will use to build JavaFX.<br>
<br>
-- Kevin<br>
<br>
<br>
<br>
On 10/13/2025 5:22 PM, Orion Poplawski wrote:<br>
> So I'm stepping back to simply try building openjfx with gradlew but I <br>
> get:<br>
><br>
> $ sh gradlew --info build<br>
> Initialized native services in: /home/orion/.gradle/native<br>
> Initialized jansi services in: /home/orion/.gradle/native<br>
> The client will now receive all logging from the daemon (pid: 253483). <br>
> The daemon log file: <br>
> /home/orion/.gradle/daemon/8.14.2/daemon-253483.out.log<br>
> Starting 2nd build in daemon [uptime: 2 mins 22.763 secs, performance: <br>
> 97%, GC rate: 0.00/s, heap usage: 2% of 512 MiB, non-heap usage: 9% of <br>
> 384 MiB]<br>
> Using 6 worker leases.<br>
> Now considering [/home/orion/openjfx-25/jfx25u-25-29] as hierarchies <br>
> to watch<br>
> Now considering [/home/orion/openjfx-25/jfx25u-25-29/buildSrc, <br>
> /home/orion/openjfx-25/jfx25u-25-29] as hierarchies to watch<br>
> Watching the file system is configured to be enabled if available<br>
> File system watching is active<br>
> Starting Build<br>
> Caching disabled for Groovy DSL script compilation (settings) because:<br>
> Build cache is disabled<br>
> Not worth caching.<br>
> Compiling settings file <br>
> '/home/orion/openjfx-25/jfx25u-25-29/settings.gradle' using <br>
> BuildScriptTransformer.<br>
><br>
> FAILURE: Build failed with an exception.<br>
><br>
> * What went wrong:<br>
> BUG! exception in phase 'semantic analysis' in source unit <br>
> '_BuildScript_' Unsupported class file major version 69<br>
> > Unsupported class file major version 69<br>
><br>
> * Try:<br>
> > Run with --stacktrace option to get the stack trace.<br>
> > Run with --debug option to get more log output.<br>
> > Run with --scan to get full insights.<br>
> > Get more help at <a href="https://help.gradle.org" rel="noreferrer" target="_blank">https://help.gradle.org</a>.<br>
><br>
> BUILD FAILED in 466ms<br>
><br>
> $ java --version<br>
> openjdk 25 2025-09-16<br>
> OpenJDK Runtime Environment (Red_Hat-25.0.0.0.36-1) (build 25+36)<br>
> OpenJDK 64-Bit Server VM (Red_Hat-25.0.0.0.36-1) (build 25+36, mixed <br>
> mode, sharing)<br>
><br>
> What am I doing wrong?<br>
><br>
<br>
</blockquote></div>