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.
Search Criteria
Package Details: java-openjfx-src 26.8-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 |
Submitter: | freswa |
Maintainer: | patlefort |
Last Packager: | patlefort |
Votes: | 12 |
Popularity: | 0.75 |
First Submitted: | 2023-10-08 20:20 (UTC) |
Last Updated: | 2025-09-18 14:10 (UTC) |
Dependencies (21)
- alsa-lib (make)
- ant (ant-gitAUR) (make)
- cairo (cairo-gitAUR) (make)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-ffplayoutAUR, ffmpeg-headlessAUR, ffmpeg-amd-full-gitAUR, ffmpeg-amd-fullAUR, ffmpeg-obsAUR, ffmpeg-libfdk_aacAUR, ffmpeg-gitAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-cudaAUR, ffmpeg-full-gitAUR) (make)
- freetype2 (freetype2-qdoled-aw3225qfAUR, freetype2-gitAUR, freetype2-macosAUR, freetype2-qdoledAUR) (make)
- gdk-pixbuf2 (gdk-pixbuf2-gitAUR) (make)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR) (make)
- gperf (gperf-gitAUR) (make)
- gradle8AUR (make)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR, gtk3-classicAUR) (make)
- java-environment-openjdk (jdk10-openj9-binAUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk16-openjdkAUR, jdk14-openjdkAUR, jdk18-openjdkAUR, liberica-jre-11-full-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, jdk13-openjdkAUR, jdk15-openjdkAUR, zulu-8-binAUR, liberica-jdk-11-lite-binAUR, jdk19-openjdkAUR, zulu-jdk-fx-binAUR, zulu-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, zulu21-fx-binAUR, jdk11-openj9-binAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jdk-android-studioAUR, zulu-11-binAUR, openjdk-liberica8-full-binAUR, openjdk-liberica11-full-binAUR, openjdk-liberica17-full-binAUR, openjdk-liberica21-full-binAUR, openjdk-liberica-full-binAUR, jdk17-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk8-dragonwell-extendedAUR, liberica-jdk-11-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-17-full-binAUR, jdk23-temurinAUR, zing-23-binAUR, jdk17-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jdk-openjdk-wakefieldAUR, zing-21-binAUR, zing-8-binAUR, zing-17-binAUR, jdk8-perfAUR, openjdk-zulu-ca-fx-binAUR, openjdk-zulu8-ca-fx-binAUR, openjdk-zulu11-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, zulu-21-binAUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, zulu-24-binAUR, liberica-nik-23-full-binAUR, liberica-jdk-21-binAUR, zulu-17-binAUR, jdk21-openj9-binAUR, jdk17-openj9-binAUR, jdk21-jetbrains-binAUR, zulu-17-fx-binAUR, zulu8-fx-binAUR, liberica-nik-24-full-binAUR, jdk-openj9-binAUR, java-openjdk-ea-binAUR, java-openjdk-binAUR, jre-jetbrainsAUR, liberica-jdk-full-binAUR, liberica-jdk-25-full-binAUR, jdk24-openjdkAUR, jdk23-openjdkAUR, jdk22-openjdkAUR, jdk25-openj9-binAUR, 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) (make)
- unzip (unzip-natspecAUR, unzip-zstdAUR, unzip_pAUR) (make)
- Show 1 more dependencies...
Required by (1)
- java-openjfx-nowebkit (optional)
Sources (3)
nomisge commented on 2023-10-14 16:14 (UTC)
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-09-05 11:14 (UTC) by patlefort)
I have modified install locations: