Skip to content

Commit

Permalink
OPENNLP-1527 - OpenNLP CLI does not start on Windows (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzo1 authored Dec 12, 2023
1 parent f16f66e commit 3b64ee4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions opennlp-distr/src/main/bin/opennlp.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3b64ee4

Please sign in to comment.