lib/Tools/java
author wenzelm
Sun, 20 May 2012 11:34:33 +0200
changeset 47884 21c42b095c84
parent 47465 71d5f37ee2bf
child 48915 34fac6fb9b03
permissions -rwxr-xr-x
try to avoid races again (cf. 8c37cb84065f and fd3a36e48b09);

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: invoke Java within the Isabelle environment

CLASSPATH="$(jvmpath "$CLASSPATH")"

if isabelle_jdk java -server >/dev/null 2>/dev/null; then
  SERVER="-server"
else
  SERVER=""
fi

isabelle_jdk java -Dfile.encoding=UTF-8 $SERVER \
  "-Djava.ext.dirs=$("$ISABELLE_HOME/src/Tools/JVM/java_ext_dirs")" "$@"