1 THIS_JRE
='java-20-openjdk'
4 if [ ! -x /usr
/bin
/java
]; then
5 /usr
/bin
/archlinux-java
unset
8 /usr
/bin
/archlinux-java get
13 default
=$
(fix_default
)
16 /usr
/bin
/archlinux-java
set ${THIS_JRE}
22 echo "Default Java environment is already set to '${default}'"
23 echo "See 'archlinux-java help' to change it"
27 echo "when you use a non-reparenting window manager,"
28 echo "set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh"
32 if [ -z "$(fix_default)" ]; then
33 /usr
/bin
/archlinux-java
set ${THIS_JRE}