From 790c4d62078ba81f34d374b361c288e6da6610a4 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sun, 3 May 2020 20:25:31 +0200 Subject: [PATCH] Export the JAVA_HOME env var --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index 61fbfe7..6c8fb58 100644 --- a/.zshrc +++ b/.zshrc @@ -50,6 +50,15 @@ fi # Pew hash pew 2>/dev/null && source $(pew shell_config) +# Java +# +# Use `archlinux-java` to change the default Java environment. +# List directories in `/usr/lib/jvm/` to see all possible values. +# +# Example: +# sudo archlinux-java set java-13-openjdk +export JAVA_HOME="/usr/lib/jvm/default" + # NVM if [ -f /usr/share/nvm/init-nvm.sh ]; then . /usr/share/nvm/init-nvm.sh