I would like to use the Java8.g4 grammar and according to
http://stackoverflow.com/questions/32910013/antlr-v4-java8-grammar-outofmemoryexceptionI should use the inofficial optimized branch.
I build it and get:
dev% antlr4 -visitor -package java8 Java8.g4
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/runtime/tree/CommonTree
at java.lang.ClassLoader.defineClass1(Native Method)
...
What are the dependencies / what must be on the classpath ?
I got the following jars from the build:
antlr4-maven-plugin/target/antlr4-maven-plugin-4.5.jar
runtime/JavaAnnotations/target/antlr4-annotations-4.5.jar
runtime/Java/lib/org.abego.treelayout.core.jar
runtime/Java/target/antlr4-runtime-4.5.jar
tool/target/antlr4-4.5.jar
tool/target/antlr4-4.5-tests.jar
Thanks
Peter