Skip to content

Help newbies with ANTLR dependencies #318

@dventimihasura

Description

@dventimihasura

Hello.

Would it be possible to help newbies get started more quickly by spelling out the ANTLR dependencies everywhere? For example, the Using StringTemplate with Java page does say

All you need to do is get the StringTemplate jar into your CLASSPATH as well as its dependent ANTLR jar.

which is good, but better would be to help newcomers understand what exactly "its dependent ANTLR jar" is (e.g., its Maven coordinates, or at least the version). Moreover, the download page says

To use maven, refer to group ID org.antlr and artifact ID ST4 in your pom.xml file:

<dependency> 
  <groupId>org.antlr</groupId> 
  <artifactId>ST4</artifactId> 
  <version>4.3.4</version> 
</dependency>

but makes no mention of an ANTLR dependency. So far I haven't found anything that says which ANTLR version to use for which ST4 version. Through trial-and-error, ANTLR 3.5.3 seemed to work with ST4 4.3.4. Surprisingly, none of the ANTLR4 versions I tried seemed to work. All threw ClassNotFoundException: org.antlr.runtime.Token. I'll keep looking. Maybe it's spelled out somewhere.

Thanks!
David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions