Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78268 - [jre-openjdk] outdated install script error

Attached to Project: Arch Linux
Opened by knotix (knotix) - Thursday, 20 April 2023, 15:39 GMT
Last edited by freswa (frederik) - Thursday, 20 April 2023, 18:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Levente Polyak (anthraxx)
freswa (frederik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:
When installing the package, the following error occurs:
`/usr/lib/jvm/java-19-openjdk is not a valid Java environment path`

I think this happens because in the first line of `install_jre-openjdk.sh`, `THIS_JDK` is still set to `java-19-openjdk` instead of `java-20-openjdk`.

This bug also affects `jre-openjdk-headless` and `jdk-openjdk`.

Additional info:
* package version 20.0.1.u9-1
This task depends upon

Closed by  freswa (frederik)
Thursday, 20 April 2023, 18:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  20.0.1.u9-2
Comment by Michael (ZeroBeat) - Thursday, 20 April 2023, 16:09 GMT
This affects many Java programs like mkgmap and splitter. All of them are broken, now.
Going back to:
jre-openjdk-19.0.2.u7-2-x86_64.pkg.tar.zst
jre-openjdk-headless-19.0.2.u7-2-x86_64.pkg.tar.zst
solves all problems.


Comment by Michael (ZeroBeat) - Thursday, 20 April 2023, 16:11 GMT
BTW:
Priority should be changed from Normal to high due to several broken programs that need Java.

Comment by Lee Donaghy (deadite66) - Thursday, 20 April 2023, 16:16 GMT
confirmed
Comment by Claudius (clst) - Thursday, 20 April 2023, 16:45 GMT
Also java-openjfx cannot be installed because it is still on Java 19

cannot resolve "java-runtime-openjdk=19", a dependency of "java-openjfx"

I guess it'll resolve itself soon.
Setting java-20 as default with archlinux-java and reinstalling will kind of fix the jre.

Then I get these warnings:
java --version
[0.003s][warning][cds] A jar file is not the one used while building the shared archive file: /usr/lib/jvm/java-20-openjdk/lib/modules
[0.003s][warning][cds] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp has changed.

Loading...