FS#78279 - [jre-openjdk-headless] A jar file is not the one used while building the shared archive file
Attached to Project:
Arch Linux
Opened by Claudio Nave (EvaristeGalois11) - Friday, 21 April 2023, 21:19 GMT
Last edited by freswa (frederik) - Tuesday, 25 April 2023, 10:57 GMT
Opened by Claudio Nave (EvaristeGalois11) - Friday, 21 April 2023, 21:19 GMT
Last edited by freswa (frederik) - Tuesday, 25 April 2023, 10:57 GMT
|
Details
Description:
Hello, after updating to jdk 20 I noticed that java emits two warnings every time is started: [0.010s][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.010s][warning][cds] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp has changed. Additional info: * package version(s) 20.0.1+9 Steps to reproduce: After installing jre-openjdk-headless run java -version to see the warnings Thank you for your work! |
This task depends upon
Closed by freswa (frederik)
Tuesday, 25 April 2023, 10:57 GMT
Reason for closing: Fixed
Additional comments about closing: jre-openjdk-headless-20.0.1.u9-3
Tuesday, 25 April 2023, 10:57 GMT
Reason for closing: Fixed
Additional comments about closing: jre-openjdk-headless-20.0.1.u9-3
No other version/vendor/distro emits this same warnings so it's a bit strange imo
There are possible workarounds (e.g. https://bbs.archlinux.org/viewtopic.php?pid=2095937#p2095937 ) but this also means the package is doing something the official distribution doesn't.
Regarding the possible workaround, as I already stated in the forum, replacing the lib folder basically means uninstalling the official package and replacing with the OpenJDK binaries from Oracle.
I think it's just better to use the corresponding AUR instead of mix and matching random things.