1 THIS_JDK
='java-11-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_JDK}
22 echo "Default Java environment is already set to '${default}'"
23 echo "See 'archlinux-java help' to change it"
27 if [ ! -f /etc
/ssl
/certs
/java
/cacerts
]; then
28 /usr
/bin
/update-ca-trust
33 default
=$
(fix_default
)
34 if [ -z "${default}" ]; then
35 /usr
/bin
/archlinux-java
set ${THIS_JDK}
38 if [ ! -f /etc
/ssl
/certs
/java
/cacerts
]; then
39 /usr
/bin
/update-ca-trust
44 if [ "x$(fix_default)" = "x${THIS_JDK}" ]; then
45 # Check JRE is still available
46 if [ -x /usr
/lib
/jvm
/${THIS_JDK}/bin
/java
]; then
47 /usr
/bin
/archlinux-java
unset