Package Details: java-openjfx-doc 25.22-1

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: 11
Popularity: 0.86
First Submitted: 2023-10-08 20:20 (UTC)
Last Updated: 2025-06-26 15:46 (UTC)

Dependencies (21)

Required by (1)

Sources (3)

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:

  • .so files are in /usr/lib/java-openjfx
  • .jar and .jmod files are in /usr/share/java/java-openjfx

It will require java 23, which requires java 22 to build. I have also removed webkit support.

Latest Comments

« First ‹ Previous 1 2 3 4 5

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?