Update KorAP-Tokenizer to v2.2.5 and min Java 17

Change-Id: I8a642672e7c04943a6312e6a00061a731d02a39c
diff --git a/lib/KorAP/XML/TEI/Tokenizer/KorAP.pm b/lib/KorAP/XML/TEI/Tokenizer/KorAP.pm
index fb4d18b..cbeca09 100644
--- a/lib/KorAP/XML/TEI/Tokenizer/KorAP.pm
+++ b/lib/KorAP/XML/TEI/Tokenizer/KorAP.pm
@@ -5,6 +5,7 @@
 use File::Share ':all';
 
 our $VERSION = '2.4.5-TRIAL';
+my $MIN_JAVA_VERSION = 17;
 
 use constant {
   WAIT_SECS => 30
@@ -13,15 +14,20 @@
 my $java = `sh -c 'command -v java'`;
 chomp $java;
 
-
 if ($java eq '') {
-  warn('No java executable found in PATH. ' . __PACKAGE__ . ' requires a JVM.');
+  warn('No java executable found in PATH. ' . __PACKAGE__ . " requires a JVM (minimum version $MIN_JAVA_VERSION).");
+  return 0;
+};
+
+my ($java_version) = `java -version 2>&1` =~ /version "(\d+)/;
+if ($java_version < $MIN_JAVA_VERSION) {
+  warn("Java (JRE) version $MIN_JAVA_VERSION or higher required, but only found version $java_version. " . __PACKAGE__ );
   return 0;
 };
 
 my $tokenizer_jar = dist_file(
   'tei2korapxml',
-  'KorAP-Tokenizer-2.2.2-standalone.jar'
+  'KorAP-Tokenizer-2.2.5-standalone.jar'
 );
 
 unless (-f $tokenizer_jar) {
diff --git a/share/KorAP-Tokenizer-2.2.2-standalone.jar b/share/KorAP-Tokenizer-2.2.2-standalone.jar
deleted file mode 100644
index c24afbc..0000000
--- a/share/KorAP-Tokenizer-2.2.2-standalone.jar
+++ /dev/null
Binary files differ
diff --git a/share/KorAP-Tokenizer-2.2.5-standalone.jar b/share/KorAP-Tokenizer-2.2.5-standalone.jar
new file mode 100644
index 0000000..5b5a8ea
--- /dev/null
+++ b/share/KorAP-Tokenizer-2.2.5-standalone.jar
Binary files differ