lib/Tools/java
author blanchet
Mon, 21 Feb 2011 13:59:44 +0100
changeset 41799 98b3d5ce0935
parent 41622 ad5474a8374b
child 43521 d477b92109b8
permissions -rwxr-xr-x
exit code 127 can mean many things -- not just (and probably not) Perl missing

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

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

JAVA_EXE="${THIS_JAVA:-$ISABELLE_JAVA}"
if "$JAVA_EXE" -server >/dev/null 2>/dev/null
then
  exec "$JAVA_EXE" -Dfile.encoding=UTF-8 -server "$@"
else
  exec "$JAVA_EXE" -Dfile.encoding=UTF-8 "$@"
fi