diff options
Diffstat (limited to 'java-dbg-newt.sh')
-rwxr-xr-x | java-dbg-newt.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/java-dbg-newt.sh b/java-dbg-newt.sh new file mode 100755 index 0000000..99be648 --- /dev/null +++ b/java-dbg-newt.sh @@ -0,0 +1,24 @@ +#! /bin/sh + +MOSX=0 +uname -a | grep -i Darwin && MOSX=1 + +CPOK=0 +echo $CLASSPATH | grep jogl && CPOK=1 + +if [ $CPOK -eq 0 ] ; then + # Only valid for autobuild .. otherwise run manually with build-dir + . ./setenv-jogl.sh JOGL_ALL + echo $CLASSPATH | grep jogl && CPOK=1 +fi +if [ $CPOK -eq 0 ] ; then + echo No JOGL in CLASSPATH +else + # D_ARGS="-Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all" + D_ARGS="-Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all" + if [ $MOSX -eq 1 ] ; then + X_ARGS="-XstartOnFirstThread" + fi + + java $X_ARGS -Djava.awt.headless=true $D_ARGS com.sun.javafx.newt.util.MainThread $* 2>&1 | tee java-dbg-newt.log +fi |