mirror of https://github.com/i2p-zero/i2p-zero
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
798 B
21 lines
798 B
5 years ago
|
#!/bin/bash
|
||
|
|
||
|
basedir=$(dirname $(dirname $(readlink -fm $0)))
|
||
|
|
||
|
JDK_VERSION=11.0.2
|
||
|
|
||
|
JDK_DOWNLOAD_FILENAME_LINUX=openjdk-${JDK_VERSION}_linux-x64_bin.tar.gz
|
||
|
JDK_DOWNLOAD_FILENAME_MAC=openjdk-${JDK_VERSION}_osx-x64_bin.tar.gz
|
||
|
JDK_DOWNLOAD_FILENAME_WIN=openjdk-${JDK_VERSION}_windows-x64_bin.zip
|
||
|
|
||
|
JDK_DOWNLOAD_URL_LINUX=https://download.java.net/java/GA/jdk11/7/GPL/$JDK_DOWNLOAD_FILENAME_LINUX
|
||
|
JDK_DOWNLOAD_URL_MAC=https://download.java.net/java/GA/jdk11/7/GPL/$JDK_DOWNLOAD_FILENAME_MAC
|
||
|
JDK_DOWNLOAD_URL_WIN=https://download.java.net/java/GA/jdk11/7/GPL/$JDK_DOWNLOAD_FILENAME_WIN
|
||
|
|
||
|
OS=`uname -s`
|
||
|
if [ $OS = "Darwin" ]; then
|
||
|
export JAVA_HOME=`realpath $basedir/import/jdks/mac/jdk-${JDK_VERSION}.jdk/Contents/Home`
|
||
|
else
|
||
|
export JAVA_HOME=`realpath $basedir/import/jdks/linux/jdk-${JDK_VERSION}`
|
||
|
fi
|