Package Details: java11-openjfx-doc 11.0.20.u1-1

Git Clone URL: https://aur.archlinux.org/java11-openjfx.git (read-only, click to copy)
Package Base: java11-openjfx
Description: Java OpenJFX 11 client application platform (open-source implementation of JavaFX)
Upstream URL: https://wiki.openjdk.java.net/display/OpenJFX/Main
Licenses: custom
Submitter: freswa
Maintainer: None
Last Packager: JstKddng
Votes: 2
Popularity: 0.065374
First Submitted: 2023-04-20 20:17 (UTC)
Last Updated: 2023-11-29 19:23 (UTC)

Dependencies (22)

Required by (0)

Sources (6)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

Firechris commented on 2023-05-11 05:55 (UTC) (edited on 2023-05-11 05:55 (UTC) by Firechris)

I had a look into the build.gradle file, there is this part:

def inStream = new java.io.BufferedReader(new java.io.InputStreamReader(new java.lang.ProcessBuilder(JAVA, "-fullversion").start().getErrorStream()));
try {
    String v = inStream.readLine().trim();
    if (v != null) {
        int ib = v.indexOf("full version \"");
        if (ib != -1) {
            String str = v.substring(ib);
            String ver = str.substring(str.indexOf("\"") + 1, str.size() - 1);

            defineProperty("jdkRuntimeVersion", ver)
            def jdkVersionInfo = parseJavaVersion(ver)
            defineProperty("jdkVersion", jdkVersionInfo[0])
            defineProperty("jdkBuildNumber", jdkVersionInfo[1])
        }
    }
} finally {
    inStream.close();
}
if (!project.hasProperty("jdkRuntimeVersion")) throw new Exception("Unable to determine the version of Java in JDK_HOME at $JDK_HOME");

while my java version prints:

$ java -fullversion
openjdk full version "11.0.19+7"

So this indexOf does not match because of the openjdk in the -fullversion output.

JstKddng commented on 2023-05-11 05:49 (UTC)

Gradle starts a daemon on first run, when starting it shows this message.

Starting a Gradle Daemon (subsequent builds will be faster)

I'm not seeing that message so you there's still a gradle daemon running.

Firechris commented on 2023-05-11 05:46 (UTC)

Nope:

$ unset JDK_JAVA_OPTIONS
$ echo $JDK_JAVA_OPTIONS

$ makepkg -srCf
==> Making package: java11-openjfx 11.0.19.u1-2 (Thu May 11 07:45:29 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found java11-openjfx-11.0.19.u1.tar.gz
  -> Found gradle.properties
  -> Found java11-openjfx-flags.patch
  -> Found java11-openjfx-no-xlocale.patch
  -> Found java11-openjfx-gstreamer-lite-gcc10-compat.patch
==> Validating source files with b2sums...
    java11-openjfx-11.0.19.u1.tar.gz ... Passed
    gradle.properties ... Passed
    java11-openjfx-flags.patch ... Passed
    java11-openjfx-no-xlocale.patch ... Passed
    java11-openjfx-gstreamer-lite-gcc10-compat.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting java11-openjfx-11.0.19.u1.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting prepare()...
patching file buildSrc/linux.gradle
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
patching file modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile
patching file modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
Hunk #1 succeeded at 56 with fuzz 2 (offset 3 lines).
==> Removing existing $pkgdir/ directory...
==> Starting build()...

FAILURE: Build failed with an exception.

* Where:
Build file '/home/chris/.cache/pacaur/java11-openjfx/src/jfx11u-11.0.19-1/build.gradle' line: 638

* What went wrong:
A problem occurred evaluating root project 'jfx11u-11.0.19-1'.
> Unable to determine the version of Java in JDK_HOME at /usr/lib/jvm/default

* 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

BUILD FAILED in 3s
2 actionable tasks: 2 executed
==> ERROR: A failure occurred in build().
    Aborting...

JstKddng commented on 2023-05-11 05:44 (UTC)

hmm, last thing I can think of is that you might still have a gradle daemon running with the JDK_JAVA_OPTIONS still set, try killing it and restart the build.

Firechris commented on 2023-05-11 05:41 (UTC)

Just to make it more detailed:

$ ls -l
Permissions Size User  Date Modified Name
.rw-r--r--    58 chris 11 May 07:15  gradle.properties
.rw-r--r--   67M chris 11 May 07:15  java11-openjfx-11.0.19.u1.tar.gz
.rw-r--r--  8.6k chris 11 May 07:15  java11-openjfx-flags.patch
.rw-r--r--   719 chris 11 May 07:15  java11-openjfx-gstreamer-lite-gcc10-compat.patch
.rw-r--r--   548 chris 11 May 07:15  java11-openjfx-no-xlocale.patch
d--x--x--x     - chris 11 May 07:27  pkg
.rw-r--r--  3.7k chris 11 May 07:15  PKGBUILD
drwxr-xr-x     - chris 11 May 07:27  src
$ cd src/jfx11u-11.0.19-1
$ export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
$ gradle7 zips

FAILURE: Build failed with an exception.

* Where:
Build file '/home/chris/.cache/pacaur/java11-openjfx/src/jfx11u-11.0.19-1/build.gradle' line: 638

* What went wrong:
A problem occurred evaluating root project 'jfx11u-11.0.19-1'.
> Unable to determine the version of Java in JDK_HOME at /usr/lib/jvm/default

* 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

BUILD FAILED in 555ms
2 actionable tasks: 1 executed, 1 up-to-date

Firechris commented on 2023-05-11 05:30 (UTC)

Do not worry about that. My system is set to German and I am setting the LANG variable to en for the run, so you read it :) . I have the same result when I do not set that variable.

makepkg -srCf
==> Erstelle Paket: java11-openjfx 11.0.19.u1-2 (Do 11 Mai 2023 07:27:16 CEST)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
  -> java11-openjfx-11.0.19.u1.tar.gz gefunden
  -> gradle.properties gefunden
  -> java11-openjfx-flags.patch gefunden
  -> java11-openjfx-no-xlocale.patch gefunden
  -> java11-openjfx-gstreamer-lite-gcc10-compat.patch gefunden
==> Überprüfe source Dateien mit b2sums...
    java11-openjfx-11.0.19.u1.tar.gz ... Erfolg
    gradle.properties ... Erfolg
    java11-openjfx-flags.patch ... Erfolg
    java11-openjfx-no-xlocale.patch ... Erfolg
    java11-openjfx-gstreamer-lite-gcc10-compat.patch ... Erfolg
==> Entferne existierendes $srcdir/ Verzeichnis...
==> Entpacke Quellen...
  -> Entpacke java11-openjfx-11.0.19.u1.tar.gz mit bsdtar
==> Beginne prepare()...
patching file buildSrc/linux.gradle
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
patching file modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile
patching file modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
Hunk #1 succeeded at 56 with fuzz 2 (offset 3 lines).
==> Entferne existierendes $pkgdir/ Verzeichnis...
==> Beginne build()...

FAILURE: Build failed with an exception.

* Where:
Build file '/home/chris/.cache/pacaur/java11-openjfx/src/jfx11u-11.0.19-1/build.gradle' line: 638

* What went wrong:
A problem occurred evaluating root project 'jfx11u-11.0.19-1'.
> Unable to determine the version of Java in JDK_HOME at /usr/lib/jvm/default

* 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

BUILD FAILED in 3s
2 actionable tasks: 2 executed
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

I still think the problem is, that gradle somehow is not able to detect the Java version.

A problem occurred evaluating root project 'jfx11u-11.0.19-1'. Unable to determine the version of Java in JDK_HOME at /usr/lib/jvm/default

JstKddng commented on 2023-05-11 05:24 (UTC)

bsdtar: Failed to set default locale

That bsdtar message is bugging me, do you not have a configured locale? that message doesn't show on my end.

Firechris commented on 2023-05-11 05:19 (UTC)

I never had any problems with pacaur but you never knew :D . But I think the problem is still with gradle. The build dir is the root of the git repo, right?

$ cd .cache/pacaur/java11-openjfx
$ makepkg -srCf
==> Making package: java11-openjfx 11.0.19.u1-2 (Thu May 11 07:16:39 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found java11-openjfx-11.0.19.u1.tar.gz
  -> Found gradle.properties
  -> Found java11-openjfx-flags.patch
  -> Found java11-openjfx-no-xlocale.patch
  -> Found java11-openjfx-gstreamer-lite-gcc10-compat.patch
==> Validating source files with b2sums...
    java11-openjfx-11.0.19.u1.tar.gz ... Passed
    gradle.properties ... Passed
    java11-openjfx-flags.patch ... Passed
    java11-openjfx-no-xlocale.patch ... Passed
    java11-openjfx-gstreamer-lite-gcc10-compat.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting java11-openjfx-11.0.19.u1.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting prepare()...
patching file buildSrc/linux.gradle
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
patching file modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile
patching file modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
Hunk #1 succeeded at 56 with fuzz 2 (offset 3 lines).
==> Removing existing $pkgdir/ directory...
==> Starting build()...

FAILURE: Build failed with an exception.

* Where:
Build file '/home/chris/.cache/pacaur/java11-openjfx/src/jfx11u-11.0.19-1/build.gradle' line: 638

* What went wrong:
A problem occurred evaluating root project 'jfx11u-11.0.19-1'.
> Unable to determine the version of Java in JDK_HOME at /usr/lib/jvm/default

* 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

BUILD FAILED in 3s
2 actionable tasks: 2 executed
==> ERROR: A failure occurred in build().
    Aborting...

JstKddng commented on 2023-05-11 05:03 (UTC)

WARNING: Using existing $srcdir/ tree

I see you are using pacaur, try cd'ing into the build dir and run makepkg -srCf, that should start a clean build.

Firechris commented on 2023-05-11 04:58 (UTC)

Unsetting JDK_JAVA_OPTIONS seems not to be enough:

$ unset JDK_JAVA_OPTIONS
$ echo $JDK_JAVA_OPTIONS

$ pacaur -Suy --noconfirm --noedit --rebuild  --overwrite
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 archlinuxfr is up to date
 oracle is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Starting AUR upgrade...
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages  (3) java11-openjfx-11.0.19.u1-2  java11-openjfx-doc-11.0.19.u1-2  java11-openjfx-src-11.0.19.u1-2

:: Proceed with installation? [Y/n]
:: Retrieving package(s)...
update complete: /home/chris/.cache/pacaur/java11-openjfx
:: Checking java11-openjfx,java11-openjfx-doc,java11-openjfx-src integrity...
==> Making package: java11-openjfx 11.0.19.u1-2 (Thu May 11 06:56:13 2023)
==> Retrieving sources...
  -> Found java11-openjfx-11.0.19.u1.tar.gz
  -> Found gradle.properties
  -> Found java11-openjfx-flags.patch
  -> Found java11-openjfx-no-xlocale.patch
  -> Found java11-openjfx-gstreamer-lite-gcc10-compat.patch
==> Validating source files with b2sums...
    java11-openjfx-11.0.19.u1.tar.gz ... Passed
    gradle.properties ... Passed
    java11-openjfx-flags.patch ... Passed
    java11-openjfx-no-xlocale.patch ... Passed
    java11-openjfx-gstreamer-lite-gcc10-compat.patch ... Passed
:: Preparing java11-openjfx,java11-openjfx-doc,java11-openjfx-src...
==> Making package: java11-openjfx 11.0.19.u1-2 (Thu May 11 06:56:14 2023)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
  -> Found java11-openjfx-11.0.19.u1.tar.gz
  -> Found gradle.properties
  -> Found java11-openjfx-flags.patch
  -> Found java11-openjfx-no-xlocale.patch
  -> Found java11-openjfx-gstreamer-lite-gcc10-compat.patch
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting java11-openjfx-11.0.19.u1.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting prepare()...
patching file buildSrc/linux.gradle
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
patching file modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile
patching file modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h
patching file modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
Hunk #1 succeeded at 56 with fuzz 2 (offset 3 lines).
==> Sources are ready.
:: Building java11-openjfx,java11-openjfx-doc,java11-openjfx-src package(s)...
==> Making package: java11-openjfx 11.0.19.u1-2 (Thu May 11 06:56:18 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...

FAILURE: Build failed with an exception.

* Where:
Build file '/home/chris/.cache/pacaur/java11-openjfx/src/jfx11u-11.0.19-1/build.gradle' line: 638

* What went wrong:
A problem occurred evaluating root project 'jfx11u-11.0.19-1'.
> Unable to determine the version of Java in JDK_HOME at /usr/lib/jvm/default

* 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

BUILD FAILED in 3s
2 actionable tasks: 2 executed
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build java11-openjfx,java11-openjfx-doc,java11-openjfx-src package(s)