You are not logged in.

#1 2023-04-20 18:13:06

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,360

[SOLVED] java jre update gives error

Running pacman -Syu in a system with java jre/jdk installed gives the following errors during the update - and re-installing gives the same errors on update to version 20.0.1.u9-1:

:: Processing package changes...
( 1/14) upgrading jre-openjdk-headless                 [############################] 100%
'/usr/lib/jvm/java-19-openjdk' is not a valid Java environment path
( 2/14) upgrading jre-openjdk                          [############################] 100%
'/usr/lib/jvm/java-19-openjdk' is not a valid Java environment path
error: command failed to execute correctly
( 3/14) upgrading jdk-openjdk                          [############################] 100%
'/usr/lib/jvm/java-19-openjdk' is not a valid Java environment path

Is this a packaging bug?  If so is there a simple fix?

Downgrading back to version 19.0.2.u7-2 gives no errors during that downgrade, so presume it is indeed a packaging error.

Last edited by mcloaked (2023-04-20 19:19:51)


Mike C

Offline

#2 2023-04-20 18:39:35

cmm11
Member
Registered: 2018-02-18
Posts: 53

Re: [SOLVED] java jre update gives error

A Bugreport has already been created - https://bugs.archlinux.org/task/78268?p … re-openjdk

Offline

#3 2023-04-20 18:42:54

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,360

Re: [SOLVED] java jre update gives error

Thanks - hopefully the package(s) version 20 will be fixed before long.

Edit: Fixed in version 20.0.1.u9-2  - great fast response from the dev team

Last edited by mcloaked (2023-04-20 19:03:23)


Mike C

Offline

#4 2023-04-20 19:23:35

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

Re: [SOLVED] java jre update gives error

mcloaked wrote:

Thanks - hopefully the package(s) version 20 will be fixed before long.

Edit: Fixed in version 20.0.1.u9-2  - great fast response from the dev team

Yes, second update fixed the issue.
But when I run "java --version", I get this 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) 

Just want to know whether the first two lines are normal or not? Because, I'd never seen such before.

Waiting for your reply!

Offline

#5 2023-04-21 20:23:08

deadite66
Member
Registered: 2015-06-13
Posts: 33

Re: [SOLVED] java jre update gives error

2nd update still isn't right, /usr/bin/java has a broken symlink.

lrwxrwxrwx 1 root root 37 Jan 19 12:33 /usr/bin/java -> /usr/lib/jvm/default-runtime/bin/java

the only folder in /jvm is /usr/lib/jvm/java-20-openjdk/

Offline

#6 2023-04-21 23:08:31

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,561
Website

Re: [SOLVED] java jre update gives error

What does `archlinux-java status` tell you?

EDIT: and `pacman -Qik java-runtime-common`

Last edited by WorMzy (2023-04-21 23:10:20)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2023-04-22 04:44:00

deadite66
Member
Registered: 2015-06-13
Posts: 33

Re: [SOLVED] java jre update gives error

[lee@Plasma ~]$ archlinux-java status
Available Java environments:
  java-20-openjdk
No Java environment set as default


[lee@Plasma ~]$ pacman -Qik java-runtime-common
Name            : java-runtime-common
Version         : 3-5
Description     : Common files for Java Runtime Environments
Architecture    : any
URL             : https://www.archlinux.org/packages/extr … va-common/
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : bash  findutils  coreutils
Optional Deps   : None
Required By     : jre-openjdk-headless
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 5.26 KiB
Packager        : Frederik Schwan <freswa@archlinux.org>
Build Date      : Thu 19 Jan 2023 12:33:57 GMT
Install Date    : Thu 19 Jan 2023 19:46:21 GMT
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature

warning: java-runtime-common: /usr/lib/jvm/default (No such file or directory)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (No such file or directory)
java-runtime-common: 20 total files, 2 missing files



so i reinstalled java-runtime-common, which fixed it thanks.

EDIT: added bold so my last comment to help it stand out.

Last edited by deadite66 (2023-04-22 08:54:01)

Offline

#8 2023-04-22 08:40:06

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,360

Re: [SOLVED] java jre update gives error

Does "archlinux-java fix" (as root) resolve this?


Mike C

Offline

#9 2023-04-22 08:53:17

deadite66
Member
Registered: 2015-06-13
Posts: 33

Re: [SOLVED] java jre update gives error

mcloaked wrote:

Does "archlinux-java fix" (as root) resolve this?

Hi mcloaked, i fixed it by reinstalling java-runtime-common.

thanks.

Offline

Board footer

Powered by FluxBB