Package Base Details: java17-openjfx

Git Clone URL: https://aur.archlinux.org/java17-openjfx.git (read-only, click to copy)
Submitter: ItachiSan
Maintainer: ItachiSan
Last Packager: ItachiSan
Votes: 3
Popularity: 0.110279
First Submitted: 2023-12-05 21:09 (UTC)
Last Updated: 2024-05-18 19:00 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

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.

Karadoc commented on 2023-12-22 10:20 (UTC) (edited on 2023-12-22 10:24 (UTC) by Karadoc)

Same issue here

$ sudo pacman -Q | grep java
java-commons-lang 3.13.0-1
java-environment-common 3-5
java-runtime-common 3-5
java17-openjfx 17.0.7.u2-1


$ sudo pacman -Q | grep jdk
jdk-openjdk 21.u35-8
jdk11-openjdk 11.0.21.u9-3
jre11-openjdk 11.0.21.u9-3
jre11-openjdk-headless 11.0.21.u9-3
jre17-openjdk 17.0.9.u8-2
jre17-openjdk-headless 17.0.9.u8-2


$ sudo archlinux-java status
**Available Java environments:
  java-11-openjdk
  java-17-openjdk
  java-21-openjdk (default)

Changing to java-17-openjdk leads to the same issue (there's no javac in the directory).

JohnMaguire commented on 2023-12-19 16:43 (UTC)

❯ sudo pacman -Q | grep java
java-environment-common 3-5
java-runtime-common 3-5
java17-openjfx 17.0.7.u2-1
❯ sudo archlinux-java set java-17-openjdk
❯ sudo archlinux-java status
Available Java environments:
  java-11-openjdk
  java-17-openjdk (default)

@TheTrueManu's suggestion did not work for me:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/jmaguire/.cache/yay/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

I do not seem to have a javac in that directory.

❯ ls /usr/lib/jvm/java-17-openjdk/bin/
java  jfr  jrunscript  keytool  rmiregistry

TheTrueManu commented on 2023-12-19 03:24 (UTC)

I was able to solve the same issue as @lapicidae, @JohnMaguire and @kyngs by changing the default java environment to java 17.

sudo archlinux-java set java-17-openjdk

ItachiSan commented on 2023-12-17 11:43 (UTC)

Do you have other java packages installed? I have a guess and want to see whether I can replicate it.

kyngs commented on 2023-12-17 11:22 (UTC)

I'm also having the same issue as @lapicidae and @JohnMaguire