lib/Tools/java
author wenzelm
Wed, 25 Apr 2012 22:53:35 +0200
changeset 47764 d141f1193789
parent 47465 71d5f37ee2bf
child 48915 34fac6fb9b03
permissions -rwxr-xr-x
more direct bash process group invocation on Cygwin, bypassing extra sh.exe and perl.exe which tend to crash;

#!/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")" "$@"