I am trying to install Antlr 4.4 on Windows for the purpose of using pyfuzzy, a Python library for fuzzy logic that depends on Antlr's Python runtime to function. I've tried (naively) to get the Antlr runtimes for Python (2.7) without installing Antlr which of course was not successful.
So I've attempted to install Antlr following the instructions for Windows but I get the error any time I try to run it :
Error: Could not find or load main class org.antlr.v4.Tool
The antlr .jar file is in C:\JavaLib as are the two batch files (antlr4.bat, grun.bat) created verbatim from the installation instructions.
My CLASSPATH is (I did not have a CLASSPATH to begin with so I created one with my main Java directory and the path to the .jar file) :
C:\Program Files\Java\jdk1.7.0_21\lib;C:\Javalib\antlr4-complete.jar;
My PATH is (though I'm entirely sure if that's relevant) :
C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\MinGW\bin;C:\QtSDK\mingw\bin; C:\Software\jflex-1.5.0\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Python27;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\DLR\Sumo\bin\;C:\JavaLib
EDIT : Have switched to Antlr v 3.5.2, have updated CLASSPATH accordingly, however I am still having the same problem. i.e. the command java org.antlr.Tool -3.5.2 leads to the same error.
Note : Have not udated the .bat files as the v3 installation instructions don't mention them.
backticksfor small blocks of inline code). Thanks. - user2629998