author | wenzelm |
Thu, 23 Jun 2011 16:10:22 +0200 | |
changeset 43521 | d477b92109b8 |
parent 41622 | ad5474a8374b |
child 45105 | 21c09b727bf3 |
permissions | -rwxr-xr-x |
27914 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Makarius |
|
4 |
# |
|
27916 | 5 |
# DESCRIPTION: invoke Java within the Isabelle environment |
27914 | 6 |
|
7 |
CLASSPATH="$(jvmpath "$CLASSPATH")" |
|
41380 | 8 |
|
9 |
JAVA_EXE="${THIS_JAVA:-$ISABELLE_JAVA}" |
|
43521
d477b92109b8
provide Isabelle/Scala environment as Java extension, instead of user classpath
wenzelm
parents:
41622
diff
changeset
|
10 |
|
d477b92109b8
provide Isabelle/Scala environment as Java extension, instead of user classpath
wenzelm
parents:
41622
diff
changeset
|
11 |
if "$JAVA_EXE" -server >/dev/null 2>/dev/null; then |
d477b92109b8
provide Isabelle/Scala environment as Java extension, instead of user classpath
wenzelm
parents:
41622
diff
changeset
|
12 |
SERVER="-server" |
41380 | 13 |
else |
43521
d477b92109b8
provide Isabelle/Scala environment as Java extension, instead of user classpath
wenzelm
parents:
41622
diff
changeset
|
14 |
SERVER="" |
41380 | 15 |
fi |
16 |
||
43521
d477b92109b8
provide Isabelle/Scala environment as Java extension, instead of user classpath
wenzelm
parents:
41622
diff
changeset
|
17 |
exec "$JAVA_EXE" -Dfile.encoding=UTF-8 $SERVER \ |
d477b92109b8
provide Isabelle/Scala environment as Java extension, instead of user classpath
wenzelm
parents:
41622
diff
changeset
|
18 |
"-Djava.ext.dirs=$("$ISABELLE_HOME/lib/scripts/java_ext_dirs")" "$@" |
d477b92109b8
provide Isabelle/Scala environment as Java extension, instead of user classpath
wenzelm
parents:
41622
diff
changeset
|
19 |