Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #11758
| 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 | 2020-07-09 14:20 +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> |
| Organization | linux.* mail to news gateway |
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