Fixed issue if awt lib unavailable.

This commit is contained in:
Christian P. MOMON 2021-10-24 13:22:57 +02:00
parent 1ec26ffec8
commit e4236d26c3

View file

@ -4,7 +4,7 @@
javaCheck=`which java` javaCheck=`which java`
if [[ "$javaCheck" =~ ^/.* ]]; then if [[ "$javaCheck" =~ ^/.* ]]; then
#echo "Java requirement............... OK" #echo "Java requirement............... OK"
java -jar "$(dirname "$0")"/statoolinfos.jar $@ java -Djava.awt.headless=true -jar "$(dirname "$0")"/statoolinfos.jar $@
else else
echo "Java requirement............... MISSING" echo "Java requirement............... MISSING"
fi fi