X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=jarrg-owen.git;a=blobdiff_plain;f=jpctb;h=ee1482ab97c0cffbac76e3d348abe7e2b0843c71;hp=2e2db6d934bca442deba9d2891d2701526318209;hb=cd2e9f3c4de1504948756b4187ed6f0fc9b07280;hpb=e8a10433e34ac99ebe3671fa6010fc4a313e4ee2 diff --git a/jpctb b/jpctb index 2e2db6d..ee1482a 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" ;; +esac + #---------- create the temporary are and link farm ----------