X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=jarrg-ian.git;a=blobdiff_plain;f=jpctb;h=e04b95682e39124f03c11e7540da67341a9448bc;hp=28f71c114110dc25bb4a183b4c0d0c7e1808b9b5;hb=3e215518c4173eeb037f7b6247513a980636fb6d;hpb=cde26335b1868186951809ced9700fa9ec4d9dba diff --git a/jpctb b/jpctb index 28f71c1..e04b956 100755 --- a/jpctb +++ b/jpctb @@ -73,12 +73,17 @@ fi yppdir="${yohoho%/*}" +openjdk=/usr/lib/jvm/java-6-openjdk + if [ -x "$yppdir/java/bin/java" ]; then javadir="$yppdir/java" elif [ x"$JAVA_HOME" != x ] && [ -x "$JAVA_HOME/bin/java" ]; then javadir="$JAVA_HOME" +elif [ -x $openjdk/bin/java ]; then + javadir=$openjdk else - fail "could not find java runtime system" + fail "could not find java runtime system + please check that $yppdir/java points to your Java installation" fi case "$javadir" in