Package Details: java8-openjfx 8.u202-10

Git Clone URL: https://aur.archlinux.org/java8-openjfx.git (read-only, click to copy)
Package Base: java8-openjfx
Description: Java OpenJFX 8 client application platform (open-source implementation of JavaFX)
Upstream URL: https://wiki.openjdk.java.net/display/OpenJFX/Main
Keywords: java8-openjfx openjfx
Licenses: GPL
Provides: java-openjfx
Submitter: freswa
Maintainer: Rogach
Last Packager: Rogach
Votes: 11
Popularity: 1.34
First Submitted: 2022-03-09 18:41 (UTC)
Last Updated: 2024-05-25 07:41 (UTC)

Required by (82)

Sources (11)

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 Next › Last »

Rogach commented on 2023-01-26 14:59 (UTC) (edited on 2023-01-26 14:59 (UTC) by Rogach)

@K4LCIFER @W47MPUSv @Ghosthree3

jfxrt.jar is actually the main file that is provided by this package (java8-openjfx). I suppose the build breaks if javac attempts to compile classes that are already on the classpath, thus they had to add a check for the presence of jfxrt.

Building the package in clean chroot doesn't work either, since it depends on python2 which is in the AUR.

So for now the only solution is to uninstall java8-openjfx, run the build, and then install it back again.

Pillgar commented on 2023-01-26 02:24 (UTC)

FAILURE: Build failed with an exception.

  • Where: Build file '/home/atlantida/.cache/yay/java8-openjfx/src/rt-8u202-ga/build.gradle' line: 758

  • What went wrong: A problem occurred evaluating root project 'rt-8u202-ga'.

    Unable to determine the version of Java in JDK_HOME at /usr/lib/jvm/java-8-openjdk

Ghosthree3 commented on 2023-01-26 01:26 (UTC)

/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar is owned by java8-openjfx 8.u202-4

Funny. Removing this package, THEN building and installing it results in no errors.

W47MPUSv commented on 2023-01-26 00:37 (UTC)

@K4LCIFER. As stated in the error message, please check which package owns the file /usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar. I did not see it in the jre8-openjdk-headless file list. If nobody owns it, may try to remove it and build again.

K4LCIFER commented on 2023-01-26 00:31 (UTC)

Won't build due to errors:

> Task :checkJfxrtJar FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '/home/<username>/.cache/yay/java8-openjfx/src/rt-8u202-ga/build.gradle' line: 221

* What went wrong:
Execution failed for task ':checkJfxrtJar'.
> FAIL: /usr/lib/jvm/java-8-openjdk/jre/lib/ext/jfxrt.jar must be removed before building sdk

Rogach commented on 2023-01-25 12:42 (UTC)

@hawath Thanks for the patches! I've updated the PKGBUILD.

W47MPUSv commented on 2022-11-25 07:41 (UTC) (edited on 2022-11-25 07:42 (UTC) by W47MPUSv)

I am able to successfully build with following patches:

PKGBUILD.patch:

diff --git a/PKGBUILD b/PKGBUILD
index b566ba2..c1888ea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -37,7 +37,7 @@ makedepends=(
   libx11
   libxtst
   pango
-  python
+  python2
   qt5-base
   ruby
   unzip
@@ -52,6 +52,7 @@ source=(
   java8-openjfx-no-sys-sysctl.patch
   java8-openjfx-CVE-2021-3517-fix.patch::https://gitlab.gnome.org/GNOME/libxml2/-/commit/bf22713507fe1fc3a2c4b525cf0a88c2dc87a3a2.patch
   java8-openjfx-CVE-2021-3522-fix.patch::https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/commit/8a88e5c1db05ebadfd4569955f6f47c23cdca3c4.patch
+  java8-openjfx-include-iterator.patch::file://java8-openjfx-include-iterator.patch
 )
 sha256sums=('12b0538d04c4bd451e4692ee06357ac36233ff4ec2af9fa3b9bbdbab48c3f2fc'
             'd1c2255893e5ec6268d7c92bb6539cde629d325872f26cffb5f1f616c9d5f30d'
@@ -60,7 +61,8 @@ sha256sums=('12b0538d04c4bd451e4692ee06357ac36233ff4ec2af9fa3b9bbdbab48c3f2fc'
             'b21f6b254acc7aa2124521b6521d3bdfdfcfd9b062624a84ef73608120957d0d'
             'cd1a2bd60f636662e4f3334217b3e14f1d51cf30b77b9ca3eff8d030312fd26a'
             '4db6e995d46f5ab29c4169dab5dbbe367ebd01dee66ef1750abe5cf0c8364d42'
-            '3487eb180fff9866c8b8b08be45f13fa9e8edd04e5719bc867e59b09b81954b4')
+            '3487eb180fff9866c8b8b08be45f13fa9e8edd04e5719bc867e59b09b81954b4'
+            'd5d0ce4d0af2c02849ac47c25c76f28e7b16ab025bd9f4a0e984e18b9dbcfd2f')

 prepare() {
   cd rt-${pkgver//./}-ga
@@ -72,6 +74,8 @@ prepare() {
   # loose match the following patch due to whitespace differences
   patch -Np1 -l -i "$srcdir"/java8-openjfx-CVE-2021-3517-fix.patch -d modules/web/src/main/native/Source/ThirdParty/libxml/src
   patch -Np1 -i "$srcdir"/java8-openjfx-CVE-2021-3522-fix.patch -d modules/media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-base
+
+  patch -Np1 -i ../java8-openjfx-include-iterator.patch
 }

 build() {

and java8-openjfx-include-iterator.patch:

# This patch resolves missing <iterator> header for std::begin and std::end methods
diff --color -Naur orig/modules/web/src/main/native/Source/WTF/wtf/text/IntegerToStringConversion.h modi/modules/web/src/main/native/Source/WTF/wtf/text/IntegerToStringConversion.h
--- orig/modules/web/src/main/native/Source/WTF/wtf/text/IntegerToStringConversion.h    2018-12-10 11:30:22.000000000 -0500
+++ modi/modules/web/src/main/native/Source/WTF/wtf/text/IntegerToStringConversion.h    2022-11-25 00:47:42.329008410 -0500
@@ -22,6 +22,7 @@
 #ifndef IntegerToStringConversion_h
 #define IntegerToStringConversion_h

+#include <iterator>
 #include <wtf/text/LChar.h>

 namespace WTF {
diff --color -Naur orig/modules/web/src/main/native/Source/WTF/wtf/Vector.h modi/modules/web/src/main/native/Source/WTF/wtf/Vector.h
--- orig/modules/web/src/main/native/Source/WTF/wtf/Vector.h    2018-12-10 11:30:22.000000000 -0500
+++ modi/modules/web/src/main/native/Source/WTF/wtf/Vector.h    2022-11-25 00:46:29.669026912 -0500
@@ -22,6 +22,7 @@
 #define WTF_Vector_h

 #include <initializer_list>
+#include <iterator>
 #include <limits>
 #include <string.h>
 #include <type_traits>

Harms commented on 2022-11-07 10:10 (UTC)

Also looks like there is a dependency on python2 somewhere. This has been dropped from official repos and is now in the AUR.

Harms commented on 2022-11-07 09:30 (UTC)

Make sure that the default java version is set to 8 with archlinux-java.

ihitmani commented on 2022-09-12 18:26 (UTC)

Build file '/home/v/.cache/yay/java8-openjfx/src/rt-8u202-ga/build.gradle' line: 221

  • What went wrong: Execution failed for task ':checkJfxrtJar'.

    FAIL: /usr/lib/jvm/default/jre/lib/ext/jfxrt.jar must be removed before building sdk