lib/Tools/java
author wenzelm
Fri, 17 Aug 2012 11:42:05 +0200
changeset 48837 d1d806a42c91
parent 47465 71d5f37ee2bf
child 48915 34fac6fb9b03
permissions -rwxr-xr-x
allow to provide external ISABELLE_IDENTIFIER for repository clone -- potentially relevant for isatest and mira; clarified spaces in file names -- ISABELLE_HOME is non-critical after abolishment of "make";

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