You need Antlr jar file and the .bat files in your CLASSPATH
. I know because I had the exact same problem.
Windows
Go to the start menu and search for Environment Variables
and you will find Set Environment Variables for Users
or something like that. There should be a section labeled Variables for all Users
. If you see %CLASSPATH%
, click it, then click the edit
button under that box. Go to the very end of the list and add C:\**PATH TO JAR FILE**\antlr-X.X-complete.jar;
to the end. Repeat that with the path to each of the .bat files. If you don't see %CLASSPATH%
, then under the box, click the button that says add, and add %CLASSPATH%
, and do the same process.
OSX
I am not as familiar with OSX and the storage system, but you can do export CLASSPATH="/Users/**USER**/**PATH TO JAR FILE**/antlr-X.X-complete.jar:$CLASSPATH"
in the terminal. Repeat, but with the paths to each of the .bat files. Simple as that hopefully. Let me know if this is wrong, because like I said above, OSX is not my strong point. You could also check out this question on StackOverflow: How can I permanently add a class path to my Mac terminal?
I added OSX instructions just in case anyone else had this problem, but on OSX! :)
ALSO: Replace the X's in antlr-X.X-complete.jar
with the version number, or just make it the name of the jar file. Whatever floats your boat.
.
to classpath. (I already compiled java files) – Caron