Package Details: java17-openjfx-src 17.0.12.u0-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
Submitter: ItachiSan
Maintainer: ItachiSan
Last Packager: ItachiSan
Votes: 3
Popularity: 0.176068
First Submitted: 2023-12-05 21:09 (UTC)
Last Updated: 2024-05-05 16:01 (UTC)

Dependencies (23)

Required by (0)

Sources (5)

Latest Comments

« First ‹ Previous 1 2

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

JohnMaguire commented on 2023-12-15 04:07 (UTC) (edited on 2023-12-15 04:07 (UTC) by JohnMaguire)

I am receiving the same error as @lapicidae.

ItachiSan commented on 2023-12-10 19:13 (UTC)

Hi @lapicidae,

I was able to successfu_lly build the package with no errors inside the chroot environment provided from "extra-x86_64-build", thus I believe it is an issue with your setup.

lapicidae commented on 2023-12-06 17:52 (UTC)

Errors: * Unsupported class file major version 65 * Missing or incorrect path to 'javac'

After the following changes everything works fine.

--- PKGBUILD    2023-12-06 13:23:24.233071142 +0100
+++ PKGBUILD    2023-12-06 18:28:06.376780996 +0100
@@ -17,7 +17,7 @@
   java17-openjfx-src
 )
 pkgver=17.0.10.u0
-pkgrel=1
+pkgrel=2
 pkgdesc="Java OpenJFX 17 client application platform (open-source implementation of JavaFX)"
 arch=(x86_64)
 url=https://wiki.openjdk.java.net/display/OpenJFX/Main
@@ -35,7 +35,7 @@
   gradle
   gtk2
   gtk3
-  java-environment-openjdk=11
+  java-environment-openjdk=17
   libgl
   libx11
   libxtst
@@ -76,6 +76,9 @@
   # cd jfx-${pkgver//.u/-}
   cd jfx17u-${pkgver//.u/-}

+  # set java version
+  export PATH="/usr/lib/jvm/java-17-openjdk/bin/:$PATH"
+
   # build against ffmpeg4.4
   export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'