diff options
author | Sven Gothel <[email protected]> | 2013-07-04 20:20:35 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-07-04 20:20:35 +0200 |
commit | 3ceb32fb505363ccc02fc4cce1362257ca98a3e5 (patch) | |
tree | 856b7d0a7fc0777fe5b1feffaa3b4107cbdc1eca /make/scripts/setenv-build-jogl-x86.sh | |
parent | 64dcc55a0aadee4ef824cc145e936cd7bc3c1bdd (diff) |
Scripts: Fix setenv for open-solaris/indiana/Illumus ..
Diffstat (limited to 'make/scripts/setenv-build-jogl-x86.sh')
-rw-r--r-- | make/scripts/setenv-build-jogl-x86.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/make/scripts/setenv-build-jogl-x86.sh b/make/scripts/setenv-build-jogl-x86.sh index d203c09..f035a4a 100644 --- a/make/scripts/setenv-build-jogl-x86.sh +++ b/make/scripts/setenv-build-jogl-x86.sh @@ -38,6 +38,17 @@ if [ -z "$FOUND_JAVA" ] ; then fi if [ -z "$FOUND_JAVA" ] ; then + if [ -e /usr/java/jre/bin -a -e /usr/java/bin ] ; then + # make a symbolic link: /usr/java/bin/amd64/bin$ ln -s . bin + # since ant looks for $JAVA_HOME/bin/java and we need to force the 64bit JVM + J2RE_HOME=/usr/java/jre + JAVA_HOME=/usr/java + PATH=$J2RE_HOME/bin:$JAVA_HOME/bin:$PATH + export J2RE_HOME JAVA_HOME + FOUND_JAVA=1 + fi +fi +if [ -z "$FOUND_JAVA" ] ; then if [ -e /opt-solaris-x86/jre7 -a -e /opt-solaris-x86/j2se7 ] ; then J2RE_HOME=/opt-solaris-x86/jre7 JAVA_HOME=/opt-solaris-x86/j2se7 @@ -59,3 +70,10 @@ fi export PATH +echo FOUND_JAVA $FOUND_JAVA +echo J2RE_HOME $J2RE_HOME +echo JAVA_HOME $JAVA_HOME +echo PATH $PATH +which java +java -version + |