Building openjfx
Nir Lisker
nlisker at gmail.com
Wed Oct 15 07:35:33 UTC 2025
>
> Ah yes, you are running into one of the charming issues with using
> gradle: namely, gradle is slow in supporting the latest JDKs.
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.
The easiest way is to use JDK 24.x (e.g., 24.0.2) to both run gradle and
> build JavaFX. This is what we do.
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.
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.
On Tue, Oct 14, 2025 at 7:31 PM Kevin Rushforth <kevin.rushforth at oracle.com>
wrote:
> Ah yes, you are running into one of the charming issues with using
> gradle: namely, gradle is slow in supporting the latest JDKs.
>
> The easiest way is to use JDK 24.x (e.g., 24.0.2) to both run gradle and
> build JavaFX. This is what we do.
>
> If you need to use JDK 25 to build, you will need two JDKs: one to run
> gradle (JDK 24 or earlier) and another to use for building. Point
> JAVA_HOME to the JDK used to launch gradle and put it in your PATH.
> Point JDK_HOME to the JDK 25 that you will use to build JavaFX.
>
> -- Kevin
>
>
>
> On 10/13/2025 5:22 PM, Orion Poplawski wrote:
> > So I'm stepping back to simply try building openjfx with gradlew but I
> > get:
> >
> > $ sh gradlew --info build
> > Initialized native services in: /home/orion/.gradle/native
> > Initialized jansi services in: /home/orion/.gradle/native
> > The client will now receive all logging from the daemon (pid: 253483).
> > The daemon log file:
> > /home/orion/.gradle/daemon/8.14.2/daemon-253483.out.log
> > Starting 2nd build in daemon [uptime: 2 mins 22.763 secs, performance:
> > 97%, GC rate: 0.00/s, heap usage: 2% of 512 MiB, non-heap usage: 9% of
> > 384 MiB]
> > Using 6 worker leases.
> > Now considering [/home/orion/openjfx-25/jfx25u-25-29] as hierarchies
> > to watch
> > Now considering [/home/orion/openjfx-25/jfx25u-25-29/buildSrc,
> > /home/orion/openjfx-25/jfx25u-25-29] as hierarchies to watch
> > Watching the file system is configured to be enabled if available
> > File system watching is active
> > Starting Build
> > Caching disabled for Groovy DSL script compilation (settings) because:
> > Build cache is disabled
> > Not worth caching.
> > Compiling settings file
> > '/home/orion/openjfx-25/jfx25u-25-29/settings.gradle' using
> > BuildScriptTransformer.
> >
> > FAILURE: Build failed with an exception.
> >
> > * What went wrong:
> > BUG! exception in phase 'semantic analysis' in source unit
> > '_BuildScript_' Unsupported class file major version 69
> > > Unsupported class file major version 69
> >
> > * Try:
> > > Run with --stacktrace option to get the stack trace.
> > > Run with --debug option to get more log output.
> > > Run with --scan to get full insights.
> > > Get more help at https://help.gradle.org.
> >
> > BUILD FAILED in 466ms
> >
> > $ java --version
> > openjdk 25 2025-09-16
> > OpenJDK Runtime Environment (Red_Hat-25.0.0.0.36-1) (build 25+36)
> > OpenJDK 64-Bit Server VM (Red_Hat-25.0.0.0.36-1) (build 25+36, mixed
> > mode, sharing)
> >
> > What am I doing wrong?
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20251015/9cf65c7d/attachment.htm>
More information about the openjfx-dev
mailing list