The JAVA_HOME and JAVA_CMD need to be the short path specification or at
least enclosed in "" characters to get things right... although that
doesn't always work.
You should be able to get that by using:
DIR C:\ /X
And taking the '~' escaped directory name for the "Program Files"
directory and replace in the setup.
James K
On 1/9/2014 1:51 PM, Des Chandhok wrote:
Why does the following not work:
C:\Users\Owner>C:\VineetChanda\apache-opennlp-1.5.3\bin\opennlp.bat
'C:\Program' is not
recognized as an internal or external command,
operable program or
batch file.
The following is what I did to set up opennlp:
I downloaded apache-opennlp-1.5.3-bin.zip from http://opennlp.apache.org/cgi-bin/download.cgi.
Then I unzipped it into
directory C:\VineetChanda
I confirmed that the Path
and environment variables work:
C:\Users\Owner>where
java
C:\Windows\System32\java.exe
C:\Users\Owner>where
opennlp
C:\VineetChanda\apache-opennlp-1.5.3\bin\opennlp
C:\VineetChanda\apache-opennlp-1.5.3\bin\opennlp.bat
C:\Users\Owner>echo
%JAVA_HOME%
C:\Program
Files\Java\jdk1.7.0_45
C:\Users\Owner>echo
%JAVA_CMD%
C:\Program
Files\Java\jdk1.7.0_45\bin\java
C:\Users\Owner>echo
%OPENNLP_HOME%
C:\VineetChanda\apache-opennlp-1.5.3
C:\Users\Owner>echo
%Path%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\VineetChanda\apache-opennlp-1.5.3\bin
Any help will be greatly
appreciated. I’ve spent many days somehow this is still not working.