Package Details: openjdk22-src 22.0.2.u9-3

Git Clone URL: https://aur.archlinux.org/java22-openjdk.git (read-only, click to copy)
Package Base: java22-openjdk
Description: OpenJDK Java 22 sources
Upstream URL: https://openjdk.java.net/
Licenses: LicenseRef-Java
Provides: openjdk22-src
Submitter: patlefort
Maintainer: patlefort
Last Packager: patlefort
Votes: 1
Popularity: 0.47
First Submitted: 2025-05-03 18:15 (UTC)
Last Updated: 2026-02-03 13:13 (UTC)

Dependencies (27)

Required by (0)

Sources (5)

Latest Comments

patlefort commented on 2026-02-13 19:33 (UTC)

https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

Or try using my tool: https://gitlab.com/patlefort/pat-aur

To unset variables in your makepkg.conf, just add unset _JAVA_OPTIONS JAVA_TOOL_OPTIONS somewhere in your /etc/makepkg.conf.

Note that if you build in a clean container using one of the above method, it will not use your system's makepkg.conf, but also it will not inherit these variables.

omnigenous commented on 2026-02-13 11:36 (UTC)

Yeah I have set that variable to locally build a java application long time ago, this is only way it worked, maybe it wasn't a correct way... but no one would show me right way at the time. I swear some java developers have worst docs on building their software, do they even you cli to build their software?

Couldn't find info on "clean containers". But I did see arch wiki page for Makepkg and "makepkg.conf.5". Still not sure how to unset "_JAVA_OPTIONS JAVA_TOOL_OPTIONS" in "$XDG_CONFIG_HOME/pacman/makepkg.conf".

patlefort commented on 2026-02-12 17:53 (UTC)

Seems like you have these variables set in your environment. Setting these globally like this seem like a bad idea. I would track down where and why. You could unset them in your makepkg.conf or build everything in clean containers.

omnigenous commented on 2026-02-12 16:13 (UTC)

I was getting errors upgrading "22.0.2.u9-2 -> 22.0.2.u9-3":

configure: You have _JAVA_OPTIONS or JAVA_TOOL_OPTIONS set. This can mess up the build. Please use --with-boot-jdk-jvmargs instead.
configure: Java reports: "Picked up _JAVA_OPTIONS: -Djava.util.prefs.userRoot=/home/user/.config/java openjdk version "21.0.10" 2026-01-20 OpenJDK Runtime Environment (build 21.0.10+7) OpenJDK 64-Bit Server VM (build 21.0.10+7, mixed mode, sharing)".
configure: error: Cannot continue
configure exiting with result code 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: java22-openjdk-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
jdk22-openjdk - exit status 4

Command below solved it for me, but I'm not sure what is a proper way to fix it in PKGBUILD

unset _JAVA_OPTIONS JAVA_TOOL_OPTIONS; yay

dreieck commented on 2026-02-03 11:38 (UTC)

Ahoj,

this should not conflict with all versions of jre-openjdk-headless and jre-openjdk, but only with jre22-openjdk, java-runtime=22, jre22-openjdk-headless.

Also, jdk22-openjdk seems to also be needed to the conflicts array?

Please fix that so that different Java versions can be installed in parallel.

Regards!