aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/setenv-build-jogl-x86.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/scripts/setenv-build-jogl-x86.sh')
-rw-r--r--make/scripts/setenv-build-jogl-x86.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/make/scripts/setenv-build-jogl-x86.sh b/make/scripts/setenv-build-jogl-x86.sh
index f035a4a..ce055ba 100644
--- a/make/scripts/setenv-build-jogl-x86.sh
+++ b/make/scripts/setenv-build-jogl-x86.sh
@@ -68,6 +68,18 @@ if [ -z "$FOUND_JAVA" ] ; then
fi
fi
+if [ -z "$FOUND_JAVA" ] ; then
+ # make a symbolic link, e.g. OpenJDK:
+ # /usr/lib/jvm/java-7-openjdk-i386 -> /usr/lib/jvm/java-i386
+ if [ -e /usr/lib/jvm/java-i386 ] ; then
+ J2RE_HOME=/usr/lib/jvm/java-i386/jre
+ JAVA_HOME=/usr/lib/jvm/java-i386
+ PATH=$J2RE_HOME/bin:$JAVA_HOME/bin:$PATH
+ export J2RE_HOME JAVA_HOME
+ FOUND_JAVA=1
+ fi
+fi
+
export PATH
echo FOUND_JAVA $FOUND_JAVA