aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-16 14:54:11 +0200
committerSven Gothel <[email protected]>2012-10-16 14:54:11 +0200
commite142788fe2f8a27f1ac4febcead1b1564a0116cc (patch)
treeba74b127c74062c92cb91803751d0405b6a9716c
parentbb4ec5842eae16e9fbeeb3f4662f4b235cf56315 (diff)
Jake2.sh
-rw-r--r--Jake2.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/Jake2.sh b/Jake2.sh
index c5de72b..5ad993a 100644
--- a/Jake2.sh
+++ b/Jake2.sh
@@ -5,6 +5,12 @@ cd `dirname $0`
# for jogl and joal
CP=lib/jogamp/gluegen-rt.jar:lib/jogamp/joal.jar:lib/jogamp/jogl-all.jar:dist/lib/jake2.jar
+#breaks VM's like avian
+#X_ARGS="-Xmx100M"
+
+# should be redundant (AWT not used anyways), however, due to a bug in avian, it's required
+D0_ARGS="-Djava.awt.headless=false"
+
#D_ARGS="-Dnewt.debug.Window.MouseEvent"
#D_ARGS="-Dnewt.debug.Window.KeyEvent"
#D_ARGS="-Djogl.debug=all"
@@ -21,4 +27,4 @@ CP=lib/jogamp/gluegen-rt.jar:lib/jogamp/joal.jar:lib/jogamp/jogl-all.jar:dist/li
G_ARGS="+set timeout 12000 +set cl_timeout 12000 +set gl_mode 0 +set vid_ref jogles2"
#G_ARGS="+set timeout 12000 +set cl_timeout 12000 +set gl_mode 0 +set vid_ref jogldummy"
-exec java -Xmx100M -cp $CP $D_ARGS jake2.Jake2 $G_ARGS $* 2>&1 | tee Jake2.log
+exec java $X_ARGS -cp $CP $D0_ARGS $D_ARGS jake2.Jake2 $G_ARGS $* 2>&1 | tee Jake2.log