You are not logged in.
Pages: 1
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 pathIs 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
A Bugreport has already been created - https://bugs.archlinux.org/task/78268?p … re-openjdk
Offline
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
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
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
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
[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
Does "archlinux-java fix" (as root) resolve this?
Mike C
Offline
Does "archlinux-java fix" (as root) resolve this?
Hi mcloaked, i fixed it by reinstalling java-runtime-common.
thanks.
Offline
Pages: 1