source: local/greenstone2/linux-64bit/setup.bash

Last change on this file was 26897, checked in by davidb, 8 years ago

Setup file for Greenstone2 (linux). Essentially sets JAVA_HOME and adds it into your PATH

File size: 687 bytes
Line 
1
2#-- Java test --
3
4if [ "x$JAVA_HOME" = "x" ] ; then
5
6 # export JAVA_HOME=/research/root/jdk1.6.0_27
7 export JAVA_HOME=/research/root/jdk1.7.0_03
8
9 # Some other possible places that Java's SDK might be installed:
10 # export JAVA_HOME=/usr/lib/jvm/java-1.6.0
11 # export JAVA_HOME=/opt/openjdk-1.6.0
12
13 export PATH=$JAVA_HOME/bin:$PATH
14 echo "+ Setting JAVA_HOME to:"
15 echo "+ $JAVA_HOME"
16 echo "+ and updating PATH"
17else
18 if [ ! -d $JAVA_HOME ] ; then
19 echo "======" 1>&2
20 echo "Warning: JAVA_HOME set, but directory not found: " 1>&2
21 echo " $JAVA_HOME" 1>&2
22 echo "Assuming 'java' and 'javac' are on your path somehow else!" 1>&2
23 echo "======" 1>&2
24 fi
25fi
Note: See TracBrowser for help on using the repository browser.