Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #11758
| Path | csiph.com!2.eu.feeder.erje.net!feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder7.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Sam Kuper <sampablokuper@posteo.net> |
| Newsgroups | linux.debian.maint.java |
| Subject | Re: javac unaware of Antlr4 (was: Re: javac - error: package org.antlr.v4.runtime does not exist) |
| Date | Thu, 09 Jul 2020 14:20:01 +0200 |
| Message-ID | <AqDGV-30Y-5@gated-at.bofh.it> (permalink) |
| References | <Aqss9-4CM-1@gated-at.bofh.it> <AqApH-Sa-5@gated-at.bofh.it> <AqC8a-1VR-9@gated-at.bofh.it> |
| X-Original-To | debian-java@lists.debian.org |
| X-Mailbox-Line | From debian-java-request@lists.debian.org Thu Jul 9 12:18:47 2020 |
| Old-Return-Path | <sampablokuper@posteo.net> |
| X-Amavis-Spam-Status | No, score=-9.398 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate:hard: -5.5 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1594297114; bh=IFRUTYPrAREljlk8alh23cKz/gDo3SVeCNAeXEax6mE=; h=Date:From:To:Subject:From; b=Nh6W6Co//Zi12M9Rr/+gXx0XROmrwrAtuGv0E9Y7xL1ZjEYsIdb878oIqklrp4ins BkDFGbB4M7tpTBBb1YcrHKA8tJIf95rMcnepR+Y6USP3o25G8wwQJRG6BDiDjGd7+Q 6j2Evi832f9n+BAPrJnz4GAz+KmHJ7AM4tVZV/tYEIi4anrcuQeoe8AC+iepmQGWTJ rjrM8pa9dk9Pwcb7CI/vvoVPSFcehIsZIutkoXxlWRj0pur1FaqFgPRrd8E+O7jziZ iOJazunDxwuuaYDgQ8WAhz9q7jRwIH+eMGKOfwlpe51vKygwdbXyxjC26UsO+P09DF Thp7/U2fzO8bw== |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Mailing-List | <debian-java@lists.debian.org> archive/latest/22344 |
| List-ID | <debian-java.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-java/> |
| List-Archive | https://lists.debian.org/msgid-search/20200709121830.rb64d3eb42xv6zpv@posteo.net |
| Approved | robomod@news.nic.it |
| Lines | 49 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Thu, 9 Jul 2020 13:18:30 +0100 |
| X-Original-Message-ID | <20200709121830.rb64d3eb42xv6zpv@posteo.net> |
| X-Original-References | <20200709001910.jvfmlungaoiim43p@posteo.net> <1671660942.1515347656.1594284226046.JavaMail.zimbra@free.fr> <20200709103231.nybvdx75uwypayvj@posteo.net> |
| Xref | csiph.com linux.debian.maint.java:11758 |
Show key headers only | View raw
On Thu, Jul 09, 2020 at 11:32:31AM +0100, Sam Kuper wrote:
> This raises a question, though.
>
> Since javac and Antlr4 were both installed via apt (see above), why was
> it necessary for me to manually set the CLASSPATH in order for javac to
> be able to find Antlr4's jars? I.e. shouldn't apt (or the packages
> installed by apt) have configured things, during installation, so that
> such manual intervention would be unnecessary?
>
> If it should have done that, should I file a bug report?
My question above was not as precise as it should have been, sorry.
What I meant was: after having done
$ mkdir /tmp/antlr-test
$ cd $_
$ wget --page-requisites --recursive --level=inf --convert-links \
--no-parent \
https://www.cs.cornell.edu/courses/cs4120/2013fa/handouts/antlr.html
$ cd www.cs.cornell.edu/courses/cs4120/2013fa/handouts/xi
$ antlr4 XiLexer.g4 XiParser.g4 -no-listener
why was it not sufficient for me to do
$ javac Xi*.java
i.e. why was it instead necessary for me to do
$ CLASSPATH='.'
$ CLASSPATH+=':/usr/share/java/stringtemplate4.jar'
$ CLASSPATH+=':/usr/share/java/antlr4.jar'
$ CLASSPATH+=':/usr/share/java/antlr4-runtime.jar'
$ CLASSPATH+=':/usr/share/java/antlr3-runtime.jar/'
$ CLASSPATH+=':/usr/share/java/treelayout.jar"
$ javac -cp "$CLASSPATH" Xi*.java
and does that necessity mean that there is a bug in the antlr4 package
on Stretch?
Thanks again,
Sam
--
A: When it messes up the order in which people normally read text.
Q: When is top-posting a bad thing?
() ASCII ribbon campaign. Please avoid HTML emails & proprietary
/\ file formats. (Why? See e.g. https://v.gd/jrmGbS ). Thank you.
Back to linux.debian.maint.java | Previous | Next — Previous in thread | Next in thread | Find similar
javac - error: package org.antlr.v4.runtime does not exist Sam Kuper <sampablokuper@posteo.net> - 2020-07-09 02:20 +0200
Re: javac - error: package org.antlr.v4.runtime does not exist raphael.jolly@free.fr - 2020-07-09 10:50 +0200
javac unaware of Antlr4 (was: Re: javac - error: package org.antlr.v4.runtime does not exist) Sam Kuper <sampablokuper@posteo.net> - 2020-07-09 12:40 +0200
Re: javac unaware of Antlr4 (was: Re: javac - error: package org.antlr.v4.runtime does not exist) Sam Kuper <sampablokuper@posteo.net> - 2020-07-09 14:20 +0200
Re: javac unaware of Antlr4 (was: Re: javac - error: package org.antlr.v4.runtime does not exist) raphael.jolly@free.fr - 2020-07-09 14:30 +0200
Re: javac unaware of Antlr4 (was: Re: javac - error: package org.antlr.v4.runtime does not exist) Sam Kuper <sampablokuper@posteo.net> - 2020-07-09 15:50 +0200
Re: javac unaware of Antlr4 (was: Re: javac - error: package org.antlr.v4.runtime does not exist) Thorsten Glaser <t.glaser@tarent.de> - 2020-07-09 16:00 +0200
csiph-web