You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by ma...@apache.org on 2023/12/12 14:07:15 UTC

(opennlp) branch main updated: OPENNLP-1527 - OpenNLP CLI does not start on Windows (#564)

This is an automated email from the ASF dual-hosted git repository.

mawiesne pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opennlp.git


The following commit(s) were added to refs/heads/main by this push:
     new 3b64ee4d OPENNLP-1527 - OpenNLP CLI does not start on Windows (#564)
3b64ee4d is described below

commit 3b64ee4d8fc844599a5027e9adfc8df3758b0aee
Author: Richard Zowalla <13...@users.noreply.github.com>
AuthorDate: Tue Dec 12 15:07:10 2023 +0100

    OPENNLP-1527 - OpenNLP CLI does not start on Windows (#564)
---
 opennlp-distr/src/main/bin/opennlp.bat | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/opennlp-distr/src/main/bin/opennlp.bat b/opennlp-distr/src/main/bin/opennlp.bat
index 3b9c1665..5096067f 100644
--- a/opennlp-distr/src/main/bin/opennlp.bat
+++ b/opennlp-distr/src/main/bin/opennlp.bat
@@ -45,9 +45,8 @@ IF "%OPENNLP_HOME%" == "" (
 	FOR %%A IN ("%OPENNLP_HOME%") DO SET OPENNLP_HOME=%%~sfA
 )
 
-REM #  Get the library JAR file name (JIRA OPENNLP-554)
-FOR %%A IN ("%OPENNLP_HOME%\lib\opennlp-tools-*.jar") DO SET JAR_FILE=%%A
+SET CLASSPATH="%OPENNLP_HOME%\lib\*"
 
-%JAVA_CMD% %HEAP% "-Dlog4j.configurationFile=%OPENNLP_HOME%\conf\log4j2.xml" -jar %JAR_FILE% %*
+%JAVA_CMD% %HEAP% "-Dlog4j.configurationFile=%OPENNLP_HOME%\conf\log4j2.xml" -cp %CLASSPATH% opennlp.tools.cmdline.CLI %*
 
 ENDLOCAL