Admin/java/settings
author wenzelm
Sat, 17 Dec 2016 13:42:25 +0100
changeset 64578 7b20f9f94f4e
parent 60995 5176de8f90db
permissions -rw-r--r--
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
60995
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
     1
# -*- shell-script -*- :mode=shellscript:
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
     2
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
     3
case "$ISABELLE_PLATFORM_FAMILY" in
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
     4
  linux)
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
     5
    ISABELLE_JAVA_PLATFORM="${ISABELLE_PLATFORM64:-$ISABELLE_PLATFORM32}"
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
     6
    ISABELLE_JDK_HOME="$COMPONENT/$ISABELLE_JAVA_PLATFORM"
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
     7
    ;;
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
     8
  windows)
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
     9
    if [ ! -e "$COMPONENT/x86_64-windows" ]; then
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    10
      ISABELLE_JAVA_PLATFORM="x86-windows"
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    11
    elif "$COMPONENT/x86_64-windows/jre/bin/java" -version > /dev/null 2> /dev/null; then
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    12
      ISABELLE_JAVA_PLATFORM="x86_64-windows"
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    13
    else
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    14
      ISABELLE_JAVA_PLATFORM="x86-windows"
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    15
    fi
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    16
    ISABELLE_JDK_HOME="$COMPONENT/$ISABELLE_JAVA_PLATFORM"
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    17
    ;;
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    18
  macos)
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    19
    if [ -z "$ISABELLE_PLATFORM64" ]; then
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    20
      echo "### Java unavailable on 32bit Mac OS X" >&2
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    21
    else
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    22
      ISABELLE_JAVA_PLATFORM="$ISABELLE_PLATFORM64"
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    23
      ISABELLE_JDK_HOME="$COMPONENT/$ISABELLE_JAVA_PLATFORM/Contents/Home"
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    24
    fi
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    25
    ;;
5176de8f90db updated to jdk-8u60, with support for x86_64-windows;
wenzelm
parents:
diff changeset
    26
esac