Set oracle jdk as JAVA_HOME when building app

Open jdk does not has the java packager.
This commit is contained in:
Manfred Karrer 2018-11-25 03:01:38 +01:00
parent 15c776874e
commit edd7bbee62
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -87,7 +87,11 @@ if [ -z "$JAVA_HOME" ]; then
JAVA_HOME=$(/usr/libexec/java_home)
fi
# Open jdk does not has the java packager.
# JAVA_HOME=/Library/Java/JavaVirtualMachines/oracle_jdk-10.0.2.jdk/Contents/Home
echo "Using JAVA_HOME: $JAVA_HOME"
$JAVA_HOME/bin/javapackager \
-deploy \
-BappVersion=$version \