I added a profile.d file with some variables: https://aur.archlinux.org/cgit/aur.git/tree/java-openjfx-profile.sh?h=java-openjfx
Search Criteria
Package Details: java-openjfx 26.14-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: | 12 |
| Popularity: | 0.29 |
| First Submitted: | 2023-10-08 20:20 (UTC) |
| Last Updated: | 2025-10-30 16:07 (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, 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, jre13-openjdkAUR, jre15-openjdkAUR, zulu-8-binAUR, jre19-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, jre-zuluAUR, jre-zulu-fxAUR, 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, jdk23-temurinAUR, zing-23-binAUR, zulu-jre-fx-binAUR, jdk17-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, jre-openjdk-wakefieldAUR, 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, jdk11-temurinAUR, zulu-24-binAUR, liberica-nik-23-full-binAUR, liberica-jdk-21-binAUR, jre21-zulu-binAUR, jre17-zulu-binAUR, zulu-17-fx-binAUR, zulu8-fx-binAUR, liberica-nik-24-full-binAUR, jdk-openj9-binAUR, jdk24-openjdkAUR, jre24-openjdkAUR, jre23-openjdkAUR, jdk23-openjdkAUR, jre22-openjdkAUR, jdk22-openjdkAUR, liberica-nik-25-full-binAUR, jdk25-openjdk-wakefieldAUR, jre25-openjdk-wakefieldAUR, jdk25-openj9-binAUR, jdk21-jetbrains-binAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, liberica-jdk-25-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, liberica-jdk-11-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-17-full-binAUR, jre-jetbrainsAUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, zulu-21-binAUR, zulu-17-binAUR, jdk17-openj9-binAUR, jdk21-openj9-binAUR, java-openjdk-ea-binAUR, 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, libx11-mr293AUR)
- libxtst
- 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-cudaAUR, ffmpeg-gitAUR, ffmpeg-headlessAUR, ffmpeg-obsAUR, ffmpeg-libfdk_aacAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-full-gitAUR, ffmpeg-amd-fullAUR, ffmpeg-amd-full-gitAUR) (make)
- freetype2 (freetype2-qdoled-aw3225qfAUR, freetype2-gitAUR, freetype2-macosAUR, freetype2-qdoledAUR) (make)
- gdk-pixbuf2 (gdk-pixbuf2-gitAUR, gdk-pixbuf2-noglycinAUR) (make)
- glib2 (glib2-selinuxAUR, glib2-patched-thumbnailerAUR, glib2-gitAUR) (make)
- gperf (gperf-gitAUR) (make)
- gradle8AUR (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, 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, 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, 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, jdk11-temurinAUR, zulu-24-binAUR, liberica-nik-23-full-binAUR, liberica-jdk-21-binAUR, zulu-17-fx-binAUR, zulu8-fx-binAUR, liberica-nik-24-full-binAUR, jdk-openj9-binAUR, jdk24-openjdkAUR, jdk23-openjdkAUR, jdk22-openjdkAUR, liberica-nik-25-full-binAUR, jdk25-openjdk-wakefieldAUR, jdk25-openj9-binAUR, jdk21-graalvm-ee-binAUR, jdk21-jetbrains-binAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, liberica-jdk-25-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, liberica-jdk-11-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-17-full-binAUR, jre-jetbrainsAUR, jdk-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, zulu-21-binAUR, zulu-17-binAUR, jdk17-openj9-binAUR, jdk21-openj9-binAUR, java-openjdk-ea-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, libx11-mr293AUR) (make)
- libxtst (make)
- libxxf86vm (make)
- Show 6 more dependencies...
Required by (66)
- 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)
- domterm-git (make)
- durian
- easytranscript
- everest (make)
- Show 46 more...
Sources (6)
patlefort commented on 2025-10-27 09:48 (UTC)
alexzk commented on 2025-10-26 23:40 (UTC)
Need to add file like /etc/profile.d/java-global-options.sh
With content
!/bin/sh
Set global Java options to include the JavaFX native library path
export _JAVA_OPTIONS="-Djava.library.path=/usr/lib/java-openjfx"
trippycamper commented on 2025-10-22 18:38 (UTC)
Must be an issue on my end, sorry, it works when I install jdk24-openjdk on my other device. Will update if I find a fix.
patlefort commented on 2025-10-22 03:28 (UTC)
I can't reproduce. What version of java are you using? It's working for me with jdk24-openjdk.
trippycamper commented on 2025-10-22 02:50 (UTC) (edited on 2025-10-22 03:06 (UTC) by trippycamper)
Trying to build runs into an error:
FAILURE: Build failed with an exception.
-
Where: Script '~/.cache/yay/java-openjfx/src/jfx-26-12/buildSrc/linux.gradle' line: 36
-
What went wrong: A problem occurred evaluating script.
No signature of method: java.lang.String.formatted() is applicable for argument types: (String, String) values: [20, 0] Possible solutions: format(java.lang.String, [Ljava.lang.Object;), format(java.util.Locale, java.lang.String, [Ljava.lang.Object;)
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.14.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 35s 2 actionable tasks: 2 executed ==> ERROR: A failure occurred in build(). Aborting...
Tried enabling the build with gradle wrapper option (turned =0 to =1, correct if that was wrong) with same error.
patlefort commented on 2025-09-18 12:36 (UTC)
Don't flag out-of-date if it's not out-of-date, just comment here for problems. As for the problem installing jdk-openjdk (25.u36-1) breaks dependency 'java-runtime-
openjdk=24' required by java-openjfx, simply install jdk24-openjdk (https://aur.archlinux.org/pkgbase/java24-openjdk) from the AUR.
patlefort commented on 2025-09-11 16:50 (UTC)
I added the option to build with the gradle wrapper, look inside the PKGBUILD.
Huulivoide commented on 2025-09-05 08:02 (UTC) (edited on 2025-09-05 08:05 (UTC) by Huulivoide)
I'd recommend using the provided gradle wrapper instead of forcing users to build gradle v8 from Aur, which in turn needs an older version of JDK to build than what this package installs OpenJFX for.
patlefort commented on 2025-06-20 11:18 (UTC)
java-environment-openjdk=23 is provided by the AUR package jdk23-openjdk, which requires jdk22-openjdk to build first. So build jdk22-openjdk -> jdk23-openjdk -> java-openjfx. It's a bit of a pain but that's their requirements. My tool can simplify things by automatically managing containers, installing dependencies and building dependencies in the right order. You will have however to add a provider mapping in the target config file, example:
&providers-map= [
[&satisfies= ['java-environment=22' 'java-runtime=22'] &pkg= ['jdk22-openjdk']]
[&satisfies= ['java-environment=23' 'java-runtime=23'] &pkg= ['jdk23-openjdk']]
]
Read https://gitlab.com/patlefort/pat-aur/-/blob/master/doc/examples/config.target.example
csej commented on 2025-06-20 09:49 (UTC)
Ok, just a heads-up: I installed java-openjfx-bin instead, and got the application I needed working (painfully).
But I am trying to debug why installing this package didnt work out. I followed https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot up to
arch-nspawn $CHROOT/root pacman -Syu
which works fine. Then, I go into the directory of java-openjfx containing the PKGBUILD from the AUR (on my regular system, not $CHROOT), and then type
makechrootpkg -c -r $CHROOT
which tells me that some dependencies are missing, leading to an ERROR: Build failed. Most of the dependencies I can install with
arch-nspawn $CHROOT/root pacman -S alsa-lib ant cairo cmake ffmpeg freetype2 gdk pixbuf2 gperf gradle gtk3 libgl libx11 libxtst libxxf86vm pango python unzip zip
but I cannot install java-environment-openjdk as it is on the AUR, there arch-nspawn $CHROOT/root pacman -S does not find the package. Since there is a lot of dependencies, I tried to install yay (my AUR helper) in the $CHROOT so it would handle them for me, but after doing
makechrootpkg -c -r $CHROOT
in the yay folder containing the PKGBUILD, I cannot use arch-nspawn $CHROOT/root yay -S java-openjfx as it tells me
execv(yay) failed: No such file or directory
Do you know how to go forward? I am very new to this stuff, I am kind of over my head
Pinned Comments
patlefort commented on 2025-05-03 18:24 (UTC) (edited on 2025-10-27 15:35 (UTC) by patlefort)
I have modified install locations:
Some variables are defined in
/etc/profile.d/java-openjfx-profile.sh./usr/bin/java-openjfx-envcan also be sourced. To launch an application with openjfx, you can use for example: