X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=blobdiff_plain;f=javalibs.sh;fp=javalibs.sh;h=f25a43689a91ed46d346547ad76c963dd109a888;hp=0000000000000000000000000000000000000000;hb=c188fa3368265e362f689b86274f0dd0dd5b3573;hpb=020aa910526ece05ee8514e55a9a951b45ce1fea diff --git a/javalibs.sh b/javalibs.sh new file mode 100644 index 0000000..f25a436 --- /dev/null +++ b/javalibs.sh @@ -0,0 +1,56 @@ +set -e + +if [ -z $ICU4J ]; then + ICU4J=/usr/share/java/icu4j.jar + ICU4J=/usr/share/java/com.ibm.icu-4.4.jar + test -r "$ICU4J" || ICU4J=/usr/share/icu4j-55/lib/icu4j.jar +fi +if [ ! -r "$ICU4J" ] ; then + echo "ICU4J needs to be installed" + exit 1; +fi + +if [ -z "$JUNIT" ]; then + JUNIT=/usr/share/java/junit.jar + test -r "$JUNIT" || JUNIT=/usr/share/junit/lib/junit.jar +fi +if [ ! -r "$JUNIT" ] ; then + echo "Junit needs to be installed" + exit 1; +fi + +if [ -z "$COMMONS_LANG3" ]; then + COMMONS_LANG3=/usr/share/java/commons-lang3.jar + test -r "$COMMONS_LANG3" || COMMONS_LANG3=/usr/share/commons-lang-3.3/lib/commons-lang.jar +fi +if [ ! -r "$COMMONS_LANG3" ] ; then + echo "commons-lang needs to be installed" + exit 1; +fi + +if [ -z "$COMMONS_COMPRESS" ]; then + COMMONS_COMPRESS=/usr/share/java/commons-compress.jar +fi +if [ ! -r "$COMMONS_COMPRESS" ] ; then + echo "commons-compress needs to be installed" + exit 1; +fi + +if [ ! -x ../Dictionary ] ; then + echo "You need to clone the Dictionary repository (including subprojects) into .." + exit 1 +fi + +if [ -z "$JAVA" ]; then + JAVA=/usr/lib/jvm/java-8-openjdk-amd64/bin/java +fi +if [ ! -r "$JAVA" ]; then + echo "could not find java at $JAVA" + exit 1 +fi +JAVAC=${JAVA}c +if [ ! -r "$JAVAC" ]; then + echo "could not find javac at $JAVAC" + exit 1 +fi +