X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=jpctb;h=c4f2b6e6a241035ebc7f891765b2e5269676af50;hb=798b083bb1e01941a96b2eeef5101a47a118e4e9;hp=c7bfe4b3a8c8facf18cf07d18eb87afe0208963c;hpb=f36b775b4fbddab83ab0b0e8f835654c2b07c577;p=jarrg-ian.git diff --git a/jpctb b/jpctb index c7bfe4b..c4f2b6e 100755 --- a/jpctb +++ b/jpctb @@ -32,6 +32,13 @@ fail () { echo >&2 "jpctb: $*" exit 127 } + +nojre () { + fail "couldn't find the right jre: $* + perhaps you should make ypp's java symlink (normally yohoho/java) + point to your jre, eg to /usr/lib/jvm/java-6-sun" +} + badusage () { fail "bad usage: $*" } @@ -73,65 +80,51 @@ fi yppdir="${yohoho%/*}" -cat <&1` + set -e fi -if [ "x$javadir" = x ] && [ x"$JAVA_HOME" != x ] && \ - [ -x "$JAVA_HOME/bin/java" ]; then cat <&2 "control panel failed with exit status $rc"; exit "$rc" ;; +esac + #---------- create the temporary are and link farm ----------