Bug#859457: antlr4's grun tool misses to add . in the classpath

Christoph Muellner christoph.muellner at theobroma-systems.com
Mon Apr 3 18:51:47 UTC 2017


Package: antlr4
Version: 4.5.3-1
Severity: important
Tags: newcomer

Dear Maintainer,

I've just installed antlr4 on Debian Strech in order to
learn this tool. I carefully read the getting started
instructions [1], which list the tool grun for first
testing purposes. However, this tool does not work as
expected. It just says "Can't load Hello as lexer or parser".

This is a known issue (see [2]) and can be fixed by adding
. (dot) to the classpath.

Here is what grun (/usr/share/antlr4/grun) looks like on Debian:

CLASSPATH=/usr/share/java/antlr4.jar:/usr/share/java/antlr4-runtime.jar
exec java -cp $CLASSPATH org.antlr.v4.gui.TestRig "$@"

Here is what grun looks like on MacOS (installed with brew):

java -classpath /usr/local/Cellar/antlr/4.6/antlr-4.6-complete.jar:. org.antlr.v4.gui.TestRig "$@"

Please update the grun script to include "." in the classpath.

Thanks and BR
Christoph

[1] https://github.com/antlr/antlr4/blob/master/doc/getting-started.md
[2] https://github.com/antlr/antlr4/blob/master/doc/faq/installation.md

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages antlr4 depends on:
ii  libantlr3-runtime-java                           3.5.2-6
ii  libantlr4-runtime-java                           4.5.3-1
ii  libstringtemplate4-java                          4.0.8-2
ii  libtreelayout-java                               1.0.3-1
ii  openjdk-8-jre-headless [java6-runtime-headless]  8u121-b13-4

antlr4 recommends no packages.

antlr4 suggests no packages.

-- no debconf information



More information about the pkg-java-maintainers mailing list