manjaro(archlinux)切换java版本 - Fri, May 15, 2020
manjaro(archlinux)切换java版本
切换工具
archlinux-java
archlinux-java help
archlinux-java <COMMAND> COMMAND: status List installed Java environments and enabled one get Return the short name of the Java environment set as default set <JAVA_ENV> Force <JAVA_ENV> as default unset Unset current default Java environment fix Fix an invalid/broken default Java environment configuration
查看已经安装的java
archlinux-java status
Available Java environments: java-11-openjdk java-13-openjdk (default)
切换java版本
sudo archlinux-java set java-11-openjdk
确认java版本
java -version
openjdk version "11.0.6" 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10) OpenJDK 64-Bit Server VM (build 11.0.6+10, mixed mode)