install java jdk arch linux

htt‮sp‬://www.lautturi.com
install java jdk arch linux

To install Java on Arch Linux, you can follow these steps:

  1. Install the jdk package from the official repository:
sudo pacman -S jdk
  1. Set the default Java version to Java 11:
sudo archlinux-java set java-11-openjdk
  1. Verify that Java 11 is installed and set as the default:
java -version

Note that these steps will install the OpenJDK version of Java 11. If you prefer to install the Oracle version of Java 11, you can install the jdk-oracle package from the AUR (Arch User Repository) instead of the jdk package.

For more information on installing Java on Arch Linux, you can refer to the OpenJDK documentation or the Arch Linux documentation.

Created Time:2017-11-01 22:29:52  Author:lautturi