1. Engineering
  2. Computer Science
  3. im trying to download antlr a jar these are the...

Question: im trying to download antlr a jar these are the...

Question details

I'm trying to download antlr (a jar). These are the commands I used (for unix):

cd /usr/lib
curl -O https://www.antlr.org/download/antlr-4.7.1-complete.jar
export CLASSPATH=".:/usr/lib/antlr-4.7.1-complete.jar:$CLASSPATH"
alias antlr4='java -Xmx500M -cp "/usr/lib/antlr-4.7.1-complete.jar:$CLASSPATH" org.antlr.v4.Tool'

However, when I run this line of code:

java org.antlr.v4.Tool

Unix gets angry and says:

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

What am I doing wrong? :(

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution