Switch from AdoptOpenJDK to Adoptium
authorKeith Packard <keithp@keithp.com>
Wed, 9 Feb 2022 17:49:49 +0000 (09:49 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 9 Feb 2022 17:57:13 +0000 (09:57 -0800)
This project moved to Eclipse foundation but seems otherwise about the same.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub
altosui/Instdrv/NSIS/Includes/java.nsh
altosui/install-macosx
micropeak/MicroPeak.app/Contents/MacOS/JavaApplicationStub
telegps/TeleGPS.app/Contents/MacOS/JavaApplicationStub

index aa96638f5cf9822d1ca1fda58eccc6579903a4f2..9b7cb7078bce137d5889192008cc186c651c899e 100755 (executable)
@@ -393,7 +393,7 @@ fr)
        MSG_INSTALL_JAVA="Java doit être installé sur votre système.\nRendez-vous sur java.com et suivez les instructions d'installation..."
        MSG_LATER="Plus tard"
        MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java by Adoptium"
     ;;
 
 # German
@@ -409,7 +409,7 @@ de)
        MSG_INSTALL_JAVA="Auf Ihrem System muss die 'Java'-Software installiert sein.\nBesuchen Sie java.com für weitere Installationshinweise."
        MSG_LATER="Später"
        MSG_VISIT_JAVA_DOT_COM="Java von Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java von AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java von Adoptium"
     ;;
 
 # Simplified Chinese
@@ -425,7 +425,7 @@ zh)
        MSG_INSTALL_JAVA="你需要在Mac中安装Java运行环境!\n访问 java.com 了解如何安装。"
        MSG_LATER="稍后"
        MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java by Adoptium"
     ;;
 
 # Spanish
@@ -441,7 +441,7 @@ es)
        MSG_INSTALL_JAVA="¡Necesita tener JAVA instalado en su Mac!\nVisite java.com para consultar las instrucciones para su instalación..."
        MSG_LATER="Más tarde"
        MSG_VISIT_JAVA_DOT_COM="Java de Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java de AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java de Adoptium"
     ;;
 
 # English | default
@@ -457,7 +457,7 @@ en|*)
        MSG_INSTALL_JAVA="You need to have JAVA installed on your Mac!\nVisit java.com for installation instructions..."
        MSG_LATER="Later"
        MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java by Adoptium"
     ;;
 esac
 
@@ -829,10 +829,10 @@ if [ -z "${JAVACMD}" ] || [ ! -x "${JAVACMD}" ] ; then
                stub_logger "[EXIT 3] ${MSG_NO_SUITABLE_JAVA_EXPANDED}"
 
                # display error message with AppleScript
-               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_NO_SUITABLE_JAVA_EXPANDED}\n${MSG_NO_SUITABLE_JAVA_CHECK}\" with title \"${CFBundleName}\"  buttons {\" OK \", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTOPENJDK}\"} default button 1${DialogWithIcon}" \
+               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_NO_SUITABLE_JAVA_EXPANDED}\n${MSG_NO_SUITABLE_JAVA_CHECK}\" with title \"${CFBundleName}\"  buttons {\" OK \", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTIUM}\"} default button 1${DialogWithIcon}" \
                                -e "set response to button returned of the result" \
                                -e "if response is \"${MSG_VISIT_JAVA_DOT_COM}\" then open location \"https://www.java.com/download/\"" \
-                               -e "if response is \"${MSG_VISIT_ADOPTOPENJDK}\" then open location \"https://adoptopenjdk.net/releases.html\""
+                               -e "if response is \"${MSG_VISIT_ADOPTIUM}\" then open location \"https://adoptium.net/releases.html\""
                # exit with error
                exit 3
 
@@ -840,10 +840,10 @@ if [ -z "${JAVACMD}" ] || [ ! -x "${JAVACMD}" ] ; then
                # log exit cause
                stub_logger "[EXIT 1] ${MSG_ERROR_LAUNCHING}"
                # display error message with AppleScript
-               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_INSTALL_JAVA}\" with title \"${CFBundleName}\" buttons {\"${MSG_LATER}\", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTOPENJDK}\"} default button 1${DialogWithIcon}" \
+               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_INSTALL_JAVA}\" with title \"${CFBundleName}\" buttons {\"${MSG_LATER}\", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTIUM}\"} default button 1${DialogWithIcon}" \
                                        -e "set response to button returned of the result" \
                                        -e "if response is \"${MSG_VISIT_JAVA_DOT_COM}\" then open location \"https://www.java.com/download/\"" \
-                                       -e "if response is \"${MSG_VISIT_ADOPTOPENJDK}\" then open location \"https://adoptopenjdk.net/releases.html\""
+                                       -e "if response is \"${MSG_VISIT_ADOPTIUM}\" then open location \"https://adoptium.net/releases.html\""
                # exit with error
                exit 1
        fi
index c7ec9ca9d08d70b2b129753efb6b6a3688048207..5fa82eef82552e123c65ba68db79b7d7f28f6f04 100644 (file)
@@ -150,7 +150,7 @@ var quit
 var skip
 
 Function GetJRE
-  ${OpenURL} "adoptopenjdk.net"
+  ${OpenURL} "adoptium.net"
   MessageBox MB_OK "Click OK to continue after completing the Java Install."
 FunctionEnd
 
index e97a002ae2e08fb4f7a7219efa86b2c4a87c7ae4..c39fb85e868c8e60a9dc546bad1afd71c46fc3a8 100755 (executable)
@@ -23,8 +23,8 @@ esac
 if ls "$JVM" | grep -q adopt; then
     echo "Adopt OpenJDK already present"
 else
-    open https://adoptopenjdk.net/
-    osascript -e 'display dialog "Install Java from https://adoptopenjdk.net then click Continue" buttons {"Continue"} default button 1 with title "Install Java"' >/dev/null
+    open https://adoptium.net/
+    osascript -e 'display dialog "Install Java from https://adoptium.net then click Continue" buttons {"Continue"} default button 1 with title "Install Java"' >/dev/null
 fi
 
 cd "$dir"
index aa96638f5cf9822d1ca1fda58eccc6579903a4f2..9b7cb7078bce137d5889192008cc186c651c899e 100755 (executable)
@@ -393,7 +393,7 @@ fr)
        MSG_INSTALL_JAVA="Java doit être installé sur votre système.\nRendez-vous sur java.com et suivez les instructions d'installation..."
        MSG_LATER="Plus tard"
        MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java by Adoptium"
     ;;
 
 # German
@@ -409,7 +409,7 @@ de)
        MSG_INSTALL_JAVA="Auf Ihrem System muss die 'Java'-Software installiert sein.\nBesuchen Sie java.com für weitere Installationshinweise."
        MSG_LATER="Später"
        MSG_VISIT_JAVA_DOT_COM="Java von Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java von AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java von Adoptium"
     ;;
 
 # Simplified Chinese
@@ -425,7 +425,7 @@ zh)
        MSG_INSTALL_JAVA="你需要在Mac中安装Java运行环境!\n访问 java.com 了解如何安装。"
        MSG_LATER="稍后"
        MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java by Adoptium"
     ;;
 
 # Spanish
@@ -441,7 +441,7 @@ es)
        MSG_INSTALL_JAVA="¡Necesita tener JAVA instalado en su Mac!\nVisite java.com para consultar las instrucciones para su instalación..."
        MSG_LATER="Más tarde"
        MSG_VISIT_JAVA_DOT_COM="Java de Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java de AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java de Adoptium"
     ;;
 
 # English | default
@@ -457,7 +457,7 @@ en|*)
        MSG_INSTALL_JAVA="You need to have JAVA installed on your Mac!\nVisit java.com for installation instructions..."
        MSG_LATER="Later"
        MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java by Adoptium"
     ;;
 esac
 
@@ -829,10 +829,10 @@ if [ -z "${JAVACMD}" ] || [ ! -x "${JAVACMD}" ] ; then
                stub_logger "[EXIT 3] ${MSG_NO_SUITABLE_JAVA_EXPANDED}"
 
                # display error message with AppleScript
-               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_NO_SUITABLE_JAVA_EXPANDED}\n${MSG_NO_SUITABLE_JAVA_CHECK}\" with title \"${CFBundleName}\"  buttons {\" OK \", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTOPENJDK}\"} default button 1${DialogWithIcon}" \
+               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_NO_SUITABLE_JAVA_EXPANDED}\n${MSG_NO_SUITABLE_JAVA_CHECK}\" with title \"${CFBundleName}\"  buttons {\" OK \", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTIUM}\"} default button 1${DialogWithIcon}" \
                                -e "set response to button returned of the result" \
                                -e "if response is \"${MSG_VISIT_JAVA_DOT_COM}\" then open location \"https://www.java.com/download/\"" \
-                               -e "if response is \"${MSG_VISIT_ADOPTOPENJDK}\" then open location \"https://adoptopenjdk.net/releases.html\""
+                               -e "if response is \"${MSG_VISIT_ADOPTIUM}\" then open location \"https://adoptium.net/releases.html\""
                # exit with error
                exit 3
 
@@ -840,10 +840,10 @@ if [ -z "${JAVACMD}" ] || [ ! -x "${JAVACMD}" ] ; then
                # log exit cause
                stub_logger "[EXIT 1] ${MSG_ERROR_LAUNCHING}"
                # display error message with AppleScript
-               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_INSTALL_JAVA}\" with title \"${CFBundleName}\" buttons {\"${MSG_LATER}\", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTOPENJDK}\"} default button 1${DialogWithIcon}" \
+               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_INSTALL_JAVA}\" with title \"${CFBundleName}\" buttons {\"${MSG_LATER}\", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTIUM}\"} default button 1${DialogWithIcon}" \
                                        -e "set response to button returned of the result" \
                                        -e "if response is \"${MSG_VISIT_JAVA_DOT_COM}\" then open location \"https://www.java.com/download/\"" \
-                                       -e "if response is \"${MSG_VISIT_ADOPTOPENJDK}\" then open location \"https://adoptopenjdk.net/releases.html\""
+                                       -e "if response is \"${MSG_VISIT_ADOPTIUM}\" then open location \"https://adoptium.net/releases.html\""
                # exit with error
                exit 1
        fi
index aa96638f5cf9822d1ca1fda58eccc6579903a4f2..9b7cb7078bce137d5889192008cc186c651c899e 100755 (executable)
@@ -393,7 +393,7 @@ fr)
        MSG_INSTALL_JAVA="Java doit être installé sur votre système.\nRendez-vous sur java.com et suivez les instructions d'installation..."
        MSG_LATER="Plus tard"
        MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java by Adoptium"
     ;;
 
 # German
@@ -409,7 +409,7 @@ de)
        MSG_INSTALL_JAVA="Auf Ihrem System muss die 'Java'-Software installiert sein.\nBesuchen Sie java.com für weitere Installationshinweise."
        MSG_LATER="Später"
        MSG_VISIT_JAVA_DOT_COM="Java von Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java von AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java von Adoptium"
     ;;
 
 # Simplified Chinese
@@ -425,7 +425,7 @@ zh)
        MSG_INSTALL_JAVA="你需要在Mac中安装Java运行环境!\n访问 java.com 了解如何安装。"
        MSG_LATER="稍后"
        MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java by Adoptium"
     ;;
 
 # Spanish
@@ -441,7 +441,7 @@ es)
        MSG_INSTALL_JAVA="¡Necesita tener JAVA instalado en su Mac!\nVisite java.com para consultar las instrucciones para su instalación..."
        MSG_LATER="Más tarde"
        MSG_VISIT_JAVA_DOT_COM="Java de Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java de AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java de Adoptium"
     ;;
 
 # English | default
@@ -457,7 +457,7 @@ en|*)
        MSG_INSTALL_JAVA="You need to have JAVA installed on your Mac!\nVisit java.com for installation instructions..."
        MSG_LATER="Later"
        MSG_VISIT_JAVA_DOT_COM="Java by Oracle"
-       MSG_VISIT_ADOPTOPENJDK="Java by AdoptOpenJDK"
+       MSG_VISIT_ADOPTIUM="Java by Adoptium"
     ;;
 esac
 
@@ -829,10 +829,10 @@ if [ -z "${JAVACMD}" ] || [ ! -x "${JAVACMD}" ] ; then
                stub_logger "[EXIT 3] ${MSG_NO_SUITABLE_JAVA_EXPANDED}"
 
                # display error message with AppleScript
-               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_NO_SUITABLE_JAVA_EXPANDED}\n${MSG_NO_SUITABLE_JAVA_CHECK}\" with title \"${CFBundleName}\"  buttons {\" OK \", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTOPENJDK}\"} default button 1${DialogWithIcon}" \
+               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_NO_SUITABLE_JAVA_EXPANDED}\n${MSG_NO_SUITABLE_JAVA_CHECK}\" with title \"${CFBundleName}\"  buttons {\" OK \", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTIUM}\"} default button 1${DialogWithIcon}" \
                                -e "set response to button returned of the result" \
                                -e "if response is \"${MSG_VISIT_JAVA_DOT_COM}\" then open location \"https://www.java.com/download/\"" \
-                               -e "if response is \"${MSG_VISIT_ADOPTOPENJDK}\" then open location \"https://adoptopenjdk.net/releases.html\""
+                               -e "if response is \"${MSG_VISIT_ADOPTIUM}\" then open location \"https://adoptium.net/releases.html\""
                # exit with error
                exit 3
 
@@ -840,10 +840,10 @@ if [ -z "${JAVACMD}" ] || [ ! -x "${JAVACMD}" ] ; then
                # log exit cause
                stub_logger "[EXIT 1] ${MSG_ERROR_LAUNCHING}"
                # display error message with AppleScript
-               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_INSTALL_JAVA}\" with title \"${CFBundleName}\" buttons {\"${MSG_LATER}\", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTOPENJDK}\"} default button 1${DialogWithIcon}" \
+               osascript -e "tell application \"System Events\" to display dialog \"${MSG_ERROR_LAUNCHING}\n\n${MSG_INSTALL_JAVA}\" with title \"${CFBundleName}\" buttons {\"${MSG_LATER}\", \"${MSG_VISIT_JAVA_DOT_COM}\", \"${MSG_VISIT_ADOPTIUM}\"} default button 1${DialogWithIcon}" \
                                        -e "set response to button returned of the result" \
                                        -e "if response is \"${MSG_VISIT_JAVA_DOT_COM}\" then open location \"https://www.java.com/download/\"" \
-                                       -e "if response is \"${MSG_VISIT_ADOPTOPENJDK}\" then open location \"https://adoptopenjdk.net/releases.html\""
+                                       -e "if response is \"${MSG_VISIT_ADOPTIUM}\" then open location \"https://adoptium.net/releases.html\""
                # exit with error
                exit 1
        fi