X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=compile.sh;h=da057ce253fc438694da7000074c75141c0efa29;hb=020aa910526ece05ee8514e55a9a951b45ce1fea;hp=0780effa987277498dbc431ecfe0dad39a95c226;hpb=96e85ff86f44888a9994710d55e760893d87da76;p=DictionaryPC.git diff --git a/compile.sh b/compile.sh index 0780eff..da057ce 100755 --- a/compile.sh +++ b/compile.sh @@ -1,8 +1,9 @@ -ICU4J=/usr/share/java/icu4j-49.1.jar +ICU4J=/usr/share/java/icu4j.jar test -r "$ICU4J" || ICU4J=/usr/share/icu4j-55/lib/icu4j.jar JUNIT=/usr/share/java/junit.jar test -r "$JUNIT" || JUNIT=/usr/share/junit/lib/junit.jar -COMMONS=/usr/share/java/commons-text.jar +COMMONS=/usr/share/java/commons-lang3.jar +test -r "$COMMONS" || COMMONS=/usr/share/commons-lang-3.3/lib/commons-lang.jar COMMONS_COMPRESS=/usr/share/java/commons-compress.jar if [ ! -x ../Dictionary ] ; then echo "You need to clone the Dictionary repository (including subprojects) into .." @@ -24,8 +25,11 @@ if [ ! -r "$COMMONS_COMPRESS" ] ; then echo "commons-compress needs to be installed" exit 1; fi +JAVAC=/usr/lib/jvm/java-8-openjdk-amd64/bin/javac +test -x "$JAVAC" || JAVAC=javac + mkdir -p bin # -encoding is just a work around for user that still run systems # with non-UTF8 locales # Limit to Java 11 for compatibility with native-image -javac --source 11 --target 11 --limit-modules java.xml,java.logging -Xlint:all -encoding UTF-8 -g -d bin/ ../Dictionary/Util/src/com/hughes/util/*.java ../Dictionary/Util/src/com/hughes/util/raf/*.java ../Dictionary/src/com/hughes/android/dictionary/DictionaryInfo.java ../Dictionary/src/com/hughes/android/dictionary/engine/*.java ../Dictionary/src/com/hughes/android/dictionary/C.java src/com/hughes/util/*.java src/com/hughes/android/dictionary/*.java src/com/hughes/android/dictionary/*/*.java src/com/hughes/android/dictionary/*/*/*.java -classpath "$ICU4J:$JUNIT:$COMMONS:$COMMONS_COMPRESS" +$JAVAC -Xlint:all -encoding UTF-8 -g -d bin/ ../Dictionary/Util/src/com/hughes/util/*.java ../Dictionary/Util/src/com/hughes/util/raf/*.java ../Dictionary/src/com/hughes/android/dictionary/DictionaryInfo.java ../Dictionary/src/com/hughes/android/dictionary/engine/*.java ../Dictionary/src/com/hughes/android/dictionary/C.java src/com/hughes/util/*.java src/com/hughes/android/dictionary/*.java src/com/hughes/android/dictionary/*/*.java src/com/hughes/android/dictionary/*/*/*.java -classpath "$ICU4J:$JUNIT:$COMMONS:$COMMONS_COMPRESS"