summaryrefslogtreecommitdiffstats
path: root/java-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'java-run.sh')
-rw-r--r--java-run.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/java-run.sh b/java-run.sh
new file mode 100644
index 0000000..9108f2e
--- /dev/null
+++ b/java-run.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+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
+ java $* 2>&1 | tee java-run.log
+fi
+