Package Details: java17-openjfx 17.0.11.u2-1

Git Clone URL: https://aur.archlinux.org/java17-openjfx.git (read-only, click to copy)
Package Base: java17-openjfx
Description: Java OpenJFX 17 client application platform (open-source implementation of JavaFX)
Upstream URL: https://wiki.openjdk.java.net/display/OpenJFX/Main
Licenses: custom
Provides: java-openjfx
Submitter: ItachiSan
Maintainer: ItachiSan
Last Packager: ItachiSan
Votes: 3
Popularity: 0.22
First Submitted: 2023-12-05 21:09 (UTC)
Last Updated: 2024-03-15 23:16 (UTC)

Dependencies (31)

Required by (75)

Sources (5)

Latest Comments

1 2 Next › Last »

dynobo commented on 2024-04-24 14:30 (UTC) (edited on 2024-04-24 14:31 (UTC) by dynobo)

To expand on @sl1pkn06's solution to @duvel71's issue: That line has to go into PKGBUILD in the build() section before the line where gradle is started. I used this line from the java-openjfx package and put it in L84:

  # Workaround for situation where the linker treats whitespace as arguments
  export LDFLAGS="${LDFLAGS//+([[:space:]]|[[:blank:]])/ }"

Worked like a charm!

sl1pkn07 commented on 2024-03-28 20:14 (UTC)

Hi

if help

export LDFLAGS="$(echo ${LDFLAGS} | sed -e 's|[[:space:]][[:space:]]|[[:space:]]|g' -e 's|\n||g')"

expalantion in the java-openjfx package

greetings

duvel71 commented on 2024-03-22 09:08 (UTC)

Trying to build this I get the following error:

> Task :graphics:linkDecoraNativeShadersLinux FAILED
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
collect2: error: ld returned 1 exit status

FAILURE: Build failed with an exception.

First attempt was a clean build with java-openjdk-17 as my default java environment. Changing java-environment-openjdk=11 to 17 in PKGBUILD didn't help. Neither did changing it back to 11 and switching the default java environment from java-openjdk-17 to java-openjdk-11. All combinations resulted in the same build error.

Here's the full build output:

==> Making package: java17-openjfx 17.0.11.u2-1 (Fri 22 Mar 2024 10:52:21)
==> Retrieving sources...
  -> Downloading java17-openjfx-17.0.11.u2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 58.4M    0 58.4M    0     0   923k      0 --:--:--  0:01:04 --:--:--  886k
  -> Found gradle.properties
  -> Found java-openjfx-flags.patch
  -> Found java-openjfx-no-xlocale.patch
  -> Found java-openjfx-gstreamer-lite-gcc10-compat.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with b2sums...
    java17-openjfx-17.0.11.u2.tar.gz ... Passed
    gradle.properties ... Passed
    java-openjfx-flags.patch ... Passed
    java-openjfx-no-xlocale.patch ... Passed
    java-openjfx-gstreamer-lite-gcc10-compat.patch ... Passed
:: (1/1) Parsing SRCINFO: java17-openjfx
==> Making package: java17-openjfx 17.0.11.u2-1 (Fri 22 Mar 2024 10:53:30)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found java17-openjfx-17.0.11.u2.tar.gz
  -> Found gradle.properties
  -> Found java-openjfx-flags.patch
  -> Found java-openjfx-no-xlocale.patch
  -> Found java-openjfx-gstreamer-lite-gcc10-compat.patch
==> Validating source files with b2sums...
    java17-openjfx-17.0.11.u2.tar.gz ... Passed
    gradle.properties ... Passed
    java-openjfx-flags.patch ... Passed
    java-openjfx-no-xlocale.patch ... Passed
    java-openjfx-gstreamer-lite-gcc10-compat.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting java17-openjfx-17.0.11.u2.tar.gz with bsdtar
==> 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
Hunk #2 succeeded at 55 with fuzz 1.
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.
==> Making package: java17-openjfx 17.0.11.u2-1 (Fri 22 Mar 2024 10:53:42)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Downloading https://services.gradle.org/distributions/gradle-7.3-bin.zip
...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100%

Welcome to Gradle 7.3!

Here are the highlights of this release:
 - Easily declare new test suites in Java projects
 - Support for Java 17
 - Support for Scala 3

For more details see https://docs.gradle.org/7.3/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build 

> Configure project :
gradle.gradleVersion: 7.3
OS_NAME: linux
OS_ARCH: amd64
JAVA_HOME: /usr/lib/jvm/java-17-openjdk
JDK_HOME: /usr/lib/jvm/java-17-openjdk
java.runtime.version: 17.0.10+7
java version: 17.0.10
java build number: 7
jdk.runtime.version: 17.0.10+7
jdk version: 17.0.10
jdk build number: 7
minimum jdk version: 11
minimum jdk build number: 28
GCC version: gcc12.2.0-OL6.4+1.0
cmake version: 3.22.3
ninja version: 1.8.2
ant version: 1.10.5
HAS_JAVAFX_MODULES: false
STUB_RUNTIME: /usr/lib/jvm/java-17-openjdk
CONF: Release
NUM_COMPILE_THREADS: 8
COMPILE_TARGETS: linux
COMPILE_FLAGS_FILES: buildSrc/linux.gradle
HUDSON_JOB_NAME: not_hudson
HUDSON_BUILD_NUMBER: 0000
PROMOTED_BUILD_NUMBER: 0
PRODUCT_NAME: OpenJFX
RELEASE_VERSION: 17.0.11
RELEASE_SUFFIX: -internal
RELEASE_VERSION_SHORT: 17.0.11-internal
RELEASE_VERSION_LONG: 17.0.11-internal+0-2024-03-22-105555
RELEASE_VERSION_PADDED: 17.0.11.0
MAVEN_PUBLISH: false
MAVEN_VERSION: 
UPDATE_STUB_CACHE: false
Building Webkit configuration /Release/ into /home/captain/.cache/yay/java17-openjfx/src/jfx17u-17.0.11-2/modules/javafx.web/build/linux
module: project ':apps' (buildModule=NO)
module: project ':base' (buildModule=YES)
module: project ':controls' (buildModule=YES)
module: project ':fxml' (buildModule=YES)
module: project ':graphics' (buildModule=YES)
module: project ':media' (buildModule=YES)
module: project ':swing' (buildModule=YES)
module: project ':swt' (buildModule=NO)
module: project ':systemTests' (buildModule=NO)
module: project ':web' (buildModule=YES)

> Task :base:compileJava
You specified both --module-source-path and a sourcepath. These options are mutually exclusive. Ignoring sourcepath.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :graphics:generateGrammarSource
warning(131): com/sun/scenario/effect/compiler/JSL.g4:482:19: greedy block ()* contains wildcard; the non-greedy syntax ()*? may be preferred

> Task :graphics:compileJava
You specified both --module-source-path and a sourcepath. These options are mutually exclusive. Ignoring sourcepath.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :graphics:compileFullJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :graphics:linkDecoraNativeShadersLinux FAILED
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
/usr/bin/ld: cannot find : No such file or directory
collect2: error: ld returned 1 exit status

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':graphics:linkDecoraNativeShadersLinux'.
> Process 'command 'g++'' finished with non-zero exit value 1

* 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 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4m
20 actionable tasks: 20 executed
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: java17-openjfx-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
java17-openjfx - exit status 4

redtide commented on 2024-02-28 11:00 (UTC)

why java-environment-openjdk=11 and not 17? I need to install another version this way

mmachen commented on 2024-01-27 19:31 (UTC) (edited on 2024-01-27 19:34 (UTC) by mmachen)

Failed with this Gradle error message.

BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

Per https://docs.gradle.org/7.1.1/userguide/compatibility.html:

A Java version between 8 and 16 is required to execute Gradle. Java 17 and later versions are not yet supported.

So I added below to gradle.properties.

org.gradle.java.home=/usr/lib/jvm/java-11-openjdk/

Then I ran below and it worked.

makepkg -g >> PKGBUILD
makepkg

ItachiSan commented on 2024-01-17 08:12 (UTC)

Hi everyone,

I have verified that building the package works using a clean environment and makepkg: https://gist.github.com/ItachiSan/532a78702237b8c3f176d921bc164321

You can see that I have no issues using multiple JDKs and JREs. Even using the build scripts within the devtools package (they create a clean chroot) the build works.

Did you try building the package in a clean folder with makepkg?

saeziae commented on 2024-01-04 04:26 (UTC)

Please add jdk17-openjdk to dependency, and it is possible to use java 17 directly when building:

PATH=/usr/lib/jvm/java-17-openjdk/bin/:$PATH

Karadoc commented on 2023-12-29 10:16 (UTC) (edited on 2023-12-29 10:18 (UTC) by Karadoc)

Ok, so

  • Need to install jdk17-openjdk

  • Need to set java-17-openjdk by default

  • Need to edit the PKGBUILD to change java-environment-openjdk=11 to java-environment-openjdk=17

  • Still forces to install jdk11-openjdk (?!) during the operation

But at the end it works.

There still is something wrong with the dependencies with this package...

hazardfrog commented on 2023-12-22 13:11 (UTC) (edited on 2023-12-22 14:11 (UTC) by hazardfrog)

I get (with java-21-openjdk):

FAILURE: Build failed with an exception.

  • What went wrong: Could not open settings generic class cache for settings file '/tmp/pamac-build-user/java17-openjfx/src/jfx17u-17.0.10-0/settings.gradle' (/tmp/pamac-build-user/java17-openjfx/src/gradle/caches/7.3/scripts/diad98ybabowts7f9plg77tgd).

    BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65

And with archlinux-java set java-17-openjdk:

  • Where: Build file '/tmp/pamac-build-user/java17-openjfx/src/jfx17u-17.0.10-0/build.gradle' line: 617

  • What went wrong: A problem occurred evaluating root project 'jfx17u-17.0.10-0'.

    Missing or incorrect path to 'javac': '/usr/lib/jvm/java-17-openjdk/bin/javac'. Perhaps bad JDK_HOME? /usr/lib/jvm/java-17-openjdk

BlackenedSky84 commented on 2023-12-22 13:10 (UTC)

you only have jre17-openjdk installed but you need jdk17-openjdk that should allow it to build.

not sure why the PGKBUILD pulls in jdk11 instead of 17 but I changed java-environment-openjdk=11 to java-environment-openjdk=17 and it worked.