You are not logged in.

#1 2023-04-20 19:16:58

Rayshabh
Member
From: Proxima Centauri b
Registered: 2022-04-07
Posts: 38

[SOLVED] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp changed

Whenever I run 'java --version', I get this output:

$ java --version 

Output:

[0.006s][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.006s][warning][cds] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp has changed.
openjdk 20.0.1 2023-04-18
OpenJDK Runtime Environment (build 20.0.1+9)
OpenJDK 64-Bit Server VM (build 20.0.1+9, mixed mode)

What does the first two lines of the output signifies? Is it normal or do i need to fix something?


Thanks in advance.

Last edited by Rayshabh (2023-04-25 19:30:15)

Offline

#2 2023-04-21 01:10:20

Viterzgir
Member
Registered: 2013-11-07
Posts: 43

Re: [SOLVED] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp changed

I have the same issue.
I download openjdk archive from site jdk.java.net/20/
Extract and then replace original lib folder with extracted lib folder, and this warning is gone away.

Offline

#3 2023-04-21 06:15:06

qrt
Member
Registered: 2021-01-04
Posts: 2

Re: [SOLVED] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp changed

Just updated my packages and have the same behavior when starting jar applications from cli.

Offline

#4 2023-04-21 15:00:11

anatosuchus
Member
Registered: 2023-04-21
Posts: 2

Re: [SOLVED] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp changed

Here also, still digging for an answer, will post back if I figure it out.

Offline

#5 2023-04-22 20:34:12

Rayshabh
Member
From: Proxima Centauri b
Registered: 2022-04-07
Posts: 38

Re: [SOLVED] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp changed

anatosuchus wrote:

Here also, still digging for an answer, will post back if I figure it out.

Me too. Still waiting for an update that would fix the issue!

Offline

#6 2023-04-24 08:46:38

anatosuchus
Member
Registered: 2023-04-21
Posts: 2

Re: [SOLVED] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp changed

Viterzgir wrote:

I have the same issue.
I download openjdk archive from site jdk.java.net/20/
Extract and then replace original lib folder with extracted lib folder, and this warning is gone away.

Stupidly, I completely missed this response earlier. Can confirm this has worked for me, thanks @Viterzgir.

Offline

#7 2023-04-24 17:06:06

CjK
Member
Registered: 2008-10-17
Posts: 23

Re: [SOLVED] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp changed

anatosuchus wrote:
Viterzgir wrote:

I have the same issue.
I download openjdk archive from site jdk.java.net/20/
Extract and then replace original lib folder with extracted lib folder, and this warning is gone away.

Stupidly, I completely missed this response earlier. Can confirm this has worked for me, thanks @Viterzgir.

OK, but this is not we way we're supposed to do this longterm right? The package will eventually be updated, I hope.

Offline

#8 2023-04-24 18:58:42

EvaristeGalois11
Member
Registered: 2021-09-18
Posts: 1

Re: [SOLVED] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp changed

Just FYI I opened a bug to track this issue https://bugs.archlinux.org/task/78279

Viterzgir wrote:

I have the same issue.
I download openjdk archive from site jdk.java.net/20/
Extract and then replace original lib folder with extracted lib folder, and this warning is gone away.

This solution basically boils down to discarding the package provided binaries and manually installing them.
A more clean approach is to just install them with the corresponding AUR https://aur.archlinux.org/packages/java-openjdk-bin

My personal preference is temurin though https://aur.archlinux.org/packages/jdk-temurin, OpenJDK binaries aren't a great choice to be honest. More info here https://whichjdk.com/

Offline

#9 2023-04-25 19:21:35

Rayshabh
Member
From: Proxima Centauri b
Registered: 2022-04-07
Posts: 38

Re: [SOLVED] /usr/lib/jvm/java-20-openjdk/lib/modules timestamp changed

Newer update (v 20.0.1.u9-3) has fixed the issue!
Thanks everyone! Closing this thread!!

Offline

Board footer

Powered by FluxBB