@Pilli (et al.) - I was able to complete the build only after changing my java version to 17 from 21 (and after following the advice @Pilli provided). Y'all might want to clarify that one must change the version of the java jre/jdk to 17. Many folks are already running 21. Maybe make it a dependency...?
Search Criteria
Package Details: java-openjfx 25.16-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/java-openjfx.git (read-only, click to copy) |
---|---|
Package Base: | java-openjfx |
Description: | Java OpenJFX client application platform (open-source implementation of JavaFX) - latest version |
Upstream URL: | https://wiki.openjdk.java.net/display/OpenJFX/Main |
Keywords: | javafx openjfx |
Licenses: | GPL-2.0-only WITH Classpath-exception-2.0 |
Provides: | java-openjfx |
Submitter: | freswa |
Maintainer: | patlefort |
Last Packager: | patlefort |
Votes: | 10 |
Popularity: | 0.019738 |
First Submitted: | 2023-10-08 20:20 (UTC) |
Last Updated: | 2025-05-08 16:17 (UTC) |
Dependencies (26)
- java-runtime-openjdk (jdk10-openj9-binAUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jre16-openjdkAUR, jre14-openjdkAUR, jre18-openjdkAUR, liberica-jre-11-full-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jre12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jre13-openjdkAUR, jre15-openjdkAUR, liberica-nik-24-full-binAUR, zulu-8-binAUR, liberica-jdk-11-lite-binAUR, jre19-openjdkAUR, zulu-jdk-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk11-openj9-binAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk-android-studioAUR, jdk-openj9-binAUR, zulu-11-binAUR, jre-zuluAUR, jre-zulu-fxAUR, openjdk-zulu8-ca-fx-binAUR, openjdk-zulu11-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, openjdk-liberica8-full-binAUR, openjdk-liberica11-full-binAUR, openjdk-liberica17-full-binAUR, openjdk-liberica21-full-binAUR, openjdk-zulu-ca-fx-binAUR, openjdk-liberica-full-binAUR, jdk8-perfAUR, zing-21-binAUR, jdk21-jetbrains-binAUR, jdk17-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, liberica-jdk-11-binAUR, zulu-17-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-21-binAUR, zulu-17-fx-binAUR, liberica-jdk-17-full-binAUR, zulu-21-binAUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, zing-8-binAUR, jre21-zulu-binAUR, jre17-zulu-binAUR, zulu-24-binAUR, jdk23-temurinAUR, liberica-nik-23-full-binAUR, zing-23-binAUR, jre22-openjdkAUR, jdk22-openjdkAUR, jre23-openjdkAUR, jdk23-openjdkAUR, jdk21-openj9-binAUR, jdk17-openj9-binAUR, java-openjdk-ea-binAUR, zulu-jre-fx-binAUR, jre-jetbrainsAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre11-openjdk, jre17-openjdk, jre21-openjdk, jre8-openjdk)
- libgl (libglvnd-gitAUR, amdgpu-pro-oglp-legacyAUR, nvidia-340xx-utilsAUR, amdgpu-pro-oglpAUR, libglvnd)
- libx11 (libx11-gitAUR)
- libxtst
- alsa-lib (make)
- ant (ant-gitAUR) (make)
- cairo (cairo-gitAUR) (make)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-cudaAUR, ffmpeg-ffplayoutAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-amd-full-gitAUR, ffmpeg-headlessAUR, ffmpeg-fullAUR, ffmpeg-full-gitAUR, ffmpeg-gitAUR, ffmpeg-libfdk_aacAUR, ffmpeg-obsAUR) (make)
- freetype2 (freetype2-macosAUR, freetype2-qdoledAUR, freetype2-gitAUR, freetype2-qdoled-aw3225qfAUR) (make)
- gdk-pixbuf2 (gdk-pixbuf2-gitAUR) (make)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR) (make)
- gperf (gperf-gitAUR) (make)
- gradle (make)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-patched-filechooser-icon-viewAUR, gtk3-classicAUR, gtk3-classic-xfceAUR) (make)
- java-environment-openjdk (jdk10-openj9-binAUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk16-openjdkAUR, jdk14-openjdkAUR, jdk18-openjdkAUR, liberica-jre-11-full-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jdk12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk13-openjdkAUR, jdk15-openjdkAUR, liberica-nik-24-full-binAUR, zulu-8-binAUR, liberica-jdk-11-lite-binAUR, jdk19-openjdkAUR, zulu-jdk-fx-binAUR, zulu-fx-binAUR, zulu8-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk11-openj9-binAUR, jdk-openjdk-wakefieldAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk-android-studioAUR, jdk-openj9-binAUR, zulu-11-binAUR, openjdk-zulu8-ca-fx-binAUR, openjdk-zulu11-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, openjdk-liberica8-full-binAUR, openjdk-liberica11-full-binAUR, openjdk-liberica17-full-binAUR, openjdk-liberica21-full-binAUR, openjdk-zulu-ca-fx-binAUR, openjdk-liberica-full-binAUR, jdk8-perfAUR, zing-21-binAUR, jdk21-jetbrains-binAUR, jdk17-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk8-dragonwell-extendedAUR, liberica-jdk-11-binAUR, zulu-17-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-21-binAUR, zulu-17-fx-binAUR, liberica-jdk-17-full-binAUR, zulu-21-binAUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, zing-8-binAUR, zulu-24-binAUR, jdk23-temurinAUR, liberica-nik-23-full-binAUR, zing-23-binAUR, jdk22-openjdkAUR, jdk23-openjdkAUR, jdk21-openj9-binAUR, jdk17-openj9-binAUR, java-openjdk-ea-binAUR, jre-jetbrainsAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jdk8-openjdk) (make)
- libgl (libglvnd-gitAUR, amdgpu-pro-oglp-legacyAUR, nvidia-340xx-utilsAUR, amdgpu-pro-oglpAUR, libglvnd) (make)
- libx11 (libx11-gitAUR) (make)
- libxtst (make)
- libxxf86vm (make)
- pango (pango-gitAUR) (make)
- perl (perl-gitAUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- unzip (unzip-natspecAUR, unzip-zstdAUR, unzip-bsdunzip-symlinkAUR) (make)
- zip (zip-natspecAUR) (make)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-patched-filechooser-icon-viewAUR, gtk3-classicAUR, gtk3-classic-xfceAUR) (optional) – GTK3 support
Required by (67)
- asciidocfx
- autopsy
- beast2
- bluej
- bluej-preview
- bread-bin
- ccemux-git (make)
- ccemux-git (optional)
- chunky-launcher
- cmpdl
- convertwithmoss-git
- cryspmds
- csound-blue
- dataspell (optional)
- dataspell-eap (optional)
- datawarrior
- davmail (optional)
- dbschema
- domterm-git (make)
- durian
- Show 47 more...
Sources (3)
Latest Comments
« First ‹ Previous 1 2 3 4
jghodd commented on 2023-10-16 15:25 (UTC)
Pilli commented on 2023-10-16 09:21 (UTC) (edited on 2023-10-16 09:22 (UTC) by Pilli)
Hi all.
I built the packages with Java 17. Java 19 or 17 are declared as dependency at source code, in the file build.properties.
You all can download the snapshot to build the packages or the packages form this URL: https://gofile.io/d/vJc9cz
Best regards.
jghodd commented on 2023-10-15 02:52 (UTC)
I've followed @Pilli with all his suggestions and removed COMPILE_WEBKIT from gradle.properties and am still getting the following error:
* What went wrong:
Could not open settings generic class cache for settings file '/distro/local/repository/java-openjfx/java-openjfx/src/jfx21u-21-31/settings.gradle' (/home/jghodd/.gradle/caches/7.6/scripts/ausqagc3u3ca3g3hmlj5mrb5).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65
nomisge commented on 2023-10-14 16:14 (UTC)
When using @Pilli suggestions and additionally not building with webkit (configure in gradle.properties) it works for me. Building with webkit results in an error similar to @Bitals comment.
dreieck commented on 2023-10-14 13:28 (UTC) (edited on 2023-10-14 13:35 (UTC) by dreieck)
This now builds version 21 of java-openjfx.
Why is java-environment-openjdk=17
needed as make dependency, and not
java-environment-openjdk>=21
java-environment-openjdk<22
?
And thinking of maybe outdated (make)dependencies: Is still explicitly gradle7
needed, and the up to date gradle
does not suffice?
Regards!
Viterzgir commented on 2023-10-13 23:11 (UTC) (edited on 2023-10-13 23:13 (UTC) by Viterzgir)
I have an error while build
- Where:
Build file
'/home/serge/Downloads/temp/java-openjfx/src/jfx21u-21-31/build.gradle' line: 731
- What went wrong:
A problem occurred evaluating root project 'jfx21u-21-31'.
Unable to determine the version of Java in JDK_HOME at
/usr/lib/jvm/zulu-17/
Pilli commented on 2023-10-12 14:28 (UTC)
Hi.
@Freso, you can delete Gradle7 dependency and use Gradle wrapper instead. Gradle wrapper is included in the source code. You can read this here.
build() {
cd jfx${pkgver//.*}u-${pkgver//.u/-}
# cd jfx${pkgver%%.*}u-${pkgver//.u/-}
# build against ffmpeg4.4
export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
chmod u+x ./gradlew
./gradlew zips
}
@Bitals, I've had the same problem in Manjaro, it is related with cstdio library. I've added the library into 2 header files and it has worked.
This is the patch file (java-openjfx-cstdio.patch):
--- a/modules/javafx.web/src/main/native/Source/bmalloc/bmalloc/IsoPage.h
+++ b/modules/javafx.web/src/main/native/Source/bmalloc/bmalloc/IsoPage.h
@@ -31,6 +31,7 @@
#include "Mutex.h"
#include <climits>
#include <mutex>
+#include <cstdio>
#if !BUSE(LIBPAS)
--- a/modules/javafx.web/src/main/native/Source/bmalloc/bmalloc/Heap.h
--- a/modules/javafx.web/src/main/native/Source/bmalloc/bmalloc/Heap.h
@@ -44,6 +44,7 @@
#include <condition_variable>
#include <mutex>
#include <vector>
+#include <cstdio>
#if !BUSE(LIBPAS)
And this is the prepare section:
prepare() {
cd jfx${pkgver//.*}u-${pkgver//.u/-}
# cd jfx${pkgver%%.*}u-${pkgver//.u/-}
ln -sf ../gradle.properties .
patch -Np1 -i ../java-openjfx-flags.patch
patch -Np1 -i ../java-openjfx-no-xlocale.patch
patch -Np1 -i ../java-openjfx-cstdio.patch
sed 's|, "-Werror"||g' -i buildSrc/linux.gradle
}
Don't forget adding the patch b2sum to the b2sums section.
Best regards.
Bitals commented on 2023-10-10 15:03 (UTC)
Also errors out on Java 21, which this package corresponds to. But it fails towards the end:
23:35:10 make: *** [Makefile:111: all] Error 2
23:35:10
23:35:10 > Task :web:compileNativeLinux FAILED
23:35:10
23:35:10 FAILURE: Build failed with an exception.
23:35:10
23:35:10 * Where:
23:35:10 Build file '/home/builder/.cache/aurutils/sync/java-openjfx/src/jfx21u-21-31/build.gradle' line: 3655
23:35:10
23:35:10 * What went wrong:
23:35:10 Execution failed for task ':web:compileNativeLinux'.
23:35:10 > Process 'command 'perl'' finished with non-zero exit value 2
w568w commented on 2023-10-10 03:13 (UTC) (edited on 2023-10-10 03:14 (UTC) by w568w)
This package seems to only support SDK version <= 19. On SDK 20, it complains:
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings generic class cache for settings file '/home/<user>/.cache/yay/java-openjfx/src/jfx21u-21-31/settings.gradle' (/home/<user>/.gradle/caches/7.6.3/scripts/5wos0t9vak6e2kbhol4h58iy5).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 64
/path/to/src/gradle/wrapper/gradle-wrapper.properties
indicates that it uses Gradle 7.6, which does not support Java 20. Maybe add constraints for the version of java-runtime-openjdk
?
Pinned Comments
patlefort commented on 2025-05-03 18:24 (UTC) (edited on 2025-05-03 18:24 (UTC) by patlefort)
I've bumped the version but also modified the install locations:
It will require java 23, which requires java 22 to build. I have also removed webkit support.