I need to work with Java 8 grammar so I wanted to tool around with the current ANTLR source.
I followed the instructions here for building ANTLR with Maven and attached the jar I built:
https://theantlrguy.atlassian.net/wiki/display/ANTLR4/Building+ANTLR+4+with+MavenI just wanted to run the Hello example as a sanity check:
https://github.com/antlr/antlr4Here are the of the steps I took to run the example:
mack@orca:~/Documents/antlr$ alias antlr4='java -jar /home/mack/Documents/git/antlr4/tool/target/antlr4-4.2.3-SNAPSHOT-complete.jar'
mack@orca:~/Documents/antlr$ alias grun='java org.antlr.v4.runtime.misc.TestRig'
mack@orca:~/Documents/antlr$ export CLASSPATH="/home/mack/Documents/git/antlr4/tool/target/antlr4-4.2.3-SNAPSHOT-complete.jar"
mack@orca:~/Documents/antlr$ antlr4 Hello.g4
mack@orca:~/Documents/antlr$ javac Hello*.java
mack@orca:~/Documents/antlr$ grun Hello r -tree
Can't load Hello as lexer or parsermack@orca:~/Documents/antlr$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
mack@orca:~/Documents/antlr$ javac -version
javac 1.8.0_05I can run the same example with the ANTLR 4.2.2 pre-built version with no problems:
http://www.antlr.org/download/antlr-4.2.2-complete.jar
Any advice would be immensely helpful.
Thanks,
Jon