Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Could not find or load main class org.antlr.v4.Tool Antrl4

Tags:

antlr4

I want to use Antlr to create parser and i followed instruction from

Here

after following all instruction while I am running following command antlr4 -visitor D:\T\arithmetic.g4 I am getting this error msg: Error: Could not find or load main class org.antlr.v4.Tool

using this jar file : C:\Program Files\Java\lib\antlr-4.6-complete.jar

like image 999
yashpal Avatar asked Aug 05 '17 07:08

yashpal


1 Answers

Your CLASSPATH environment variable isn't set properly. One very good tutorial on setting up ANTLR4 is here. This includes instructions for Windows and Unix-based environments.

like image 68
TomServo Avatar answered Sep 18 '22 20:09

TomServo