Skip to content

Commit

Permalink
Intellij IDEA: switch to java-11 and add 32bit deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman authored Aug 3, 2023
1 parent 84359ea commit baf4a7e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions apps/Intellij IDEA/install-32
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,27 @@

version=2022.1.4

status "Installing Java 17"
warning "Intellij IDEA has been deprecated on 32bit OSs. Please use a 64bit OS for future updates."
status "Installing Java 11"
case "$__os_id" in
# Raspbian is not reported as a derivative of Debian (no /etc/upstream-release/lsb-release file)
Raspbian | Debian)
if printf '%s\n' "10" "$__os_release" | sort -CV; then
adoptium_installer || exit 1
install_packages temurin-17-jdk || exit 1
java_home="$(dpkg -L temurin-17-jdk | grep "/usr/lib/jvm.*$(dpkg --print-architecture)$")"
install_packages temurin-11-jdk || exit 1
java_home="$(dpkg -L temurin-11-jdk | grep "/usr/lib/jvm.*$(dpkg --print-architecture)$")"
else
error "Debian version ($__os_codename) is too old, update to debian Buster or newer"
fi
;;
Kali)
adoptium_installer || exit 1
install_packages temurin-17-jdk || exit 1
java_home="$(dpkg -L temurin-17-jdk | grep "/usr/lib/jvm.*$(dpkg --print-architecture)$")"
install_packages temurin-11-jdk || exit 1
java_home="$(dpkg -L temurin-11-jdk | grep "/usr/lib/jvm.*$(dpkg --print-architecture)$")"
;;
Ubuntu)
# ubuntu default repositories now include openjdk-17
# install java
install_packages openjdk-17-jdk || exit 1
java_home="$(dpkg -L openjdk-17-jdk | grep "/usr/lib/jvm.*$(dpkg --print-architecture)$")"
install_packages openjdk-11-jdk || exit 1
java_home="$(dpkg -L openjdk-11-jdk | grep "/usr/lib/jvm.*$(dpkg --print-architecture)$")"
;;
*)
error "$__os_id appears to be an unsupported OS"
Expand Down

0 comments on commit baf4a7e

Please sign in to comment.