Bug#902230: antlr4: Parse tree GUI crashes at launch
Miroslav R.
miroslavr256 at gmail.com
Sat Jun 23 17:18:46 BST 2018
Package: antlr4
Version: 4.5.3-2
Severity: important
Dear Maintainer,
I was trying to view the parse tree for an input sentence via the /usr/share/antlr4/grun script
that comes with your package. However, grun crashed with the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/abego/treelayout/Configuration
I figured out the problem lies in CLASSPATH (set by the grun script) missing the tree layout
library /usr/share/java/treelayout.jar.
Reproduction steps:
1. Create a grammar, e.g. test.g4:
grammar test;
main: 'hello' ('a'|'b')+;
2. Run "antlr4 test.g4"
3. Compile test*.java
4. Run "/usr/share/antlr4/grun test main -gui"
5. Enter "helloab" followed by an EOF
Potential solution:
CLASSPATH=.:/usr/share/java/antlr4.jar:/usr/share/java/antlr4-runtime.jar:/usr/share/java/treelayout.jar
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.14.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=sk_SK.UTF-8, LC_CTYPE=sk_SK.UTF-8 (charmap=UTF-8), LANGUAGE=sk_SK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages antlr4 depends on:
ii default-jre-headless [java6-runtime-headless] 2:1.8-59
ii libantlr3-runtime-java 3.5.2-9
ii libantlr4-runtime-java 4.5.3-2
ii libstringtemplate4-java 4.0.8-2
ii libtreelayout-java 1.0.3-1
ii openjdk-8-jre-headless [java6-runtime-headless] 8u151-b12-1
antlr4 recommends no packages.
antlr4 suggests no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list