How to change Java version on Arch Linux 05/07/2024 1 min read List all installed java versions archlinux-java status (Optional) Install a new java version sudo pacman -S jdk-openjdk[version] Set the default java version sudo archlinux-java set java-[version]-openjdk References: https://wiki.archlinux.org/title/Java # arch linux # java # cli