archlinux-java:tldr:d2982
The command archlinux-java status
is used to check the current Java environment on an Arch Linux system.
Arch Linux supports multiple Java versions, and this command displays the currently active Java environment.
When you install multiple Java Development Kits (JDK) or Java Runtime Environments (JRE) on your system, you can use this command to determine which version is set as the default.
Here's what the command does step by step:
archlinux-java
: This is the primary command for managing Java environments on an Arch Linux system.status
: This is a sub-command that is used to display the current Java environment.
When you execute archlinux-java status
, the command will query the system and provide output like:
Available Java environments:
java-11-openjdk
java-8-openjdk (default)
This output indicates that you have two available Java environments installed: java-11-openjdk
and java-8-openjdk
. It also states that java-8-openjdk
is currently set as the default.
By providing this information, the command helps you understand which Java version is being utilized by other Java-based applications on your Arch Linux system.