maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Patrick <robert.patr...@oracle.com>
Subject Re: Problems Using ANTLR4 (Packaged Classes Not Found in Generated Code)
Date Sun, 29 Oct 2017 13:10:25 GMT
Most likely, you need to add a compile-time dependency on the antlr runtime library, where
the missing class is located.

<dependency>
    <groupId>org.antlr</groupId>
    <artifactId>antlr4-runtime</artifactId>
    <version>4.7</version>
</dependency>


> On Oct 29, 2017, at 2:43 AM, Karl Heinz Marbaise <khmarbaise@gmx.de> wrote:
> 
> Hi,
> 
> can make a test project on Github/gitlab etc.
> 
> Kind regards
> Karl Heinz Marbaise
>> On 29/10/17 05:13, R0b0t1 wrote:
>> Is any more information needed? The files are generated properly by
>> ANTLR, but I can not compile the generated files.
>> [INFO] -------------------------------------------------------------
>> [ERROR] COMPILATION ERROR :
>> [INFO] -------------------------------------------------------------
>> [ERROR] /C:/Users/R0b0t1/Documents/Code/grammar-mvn/target/generated-sources/antlr4/GrammarParser.java:[32,29]
>> cannot find symbol
>>   symbol:   class Vocabulary
>>   location: class LangParser
>> And so on. I followed
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.antlr.org_api_maven-2Dplugin_latest_usage.html&d=DwICaQ&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=Ql5uwmbofQMW0iErugdCnFgO-CBGr_pt_OzwdxJosG0&m=nRiDxwbhq-IuQJmgLg2hhUqK_UsIqKWJAqUcywTbz-Y&s=9YiehKVhRPHh6AA9LGHQ5Fhbj5FKWZ4POGIAyeXDD6Y&e=
and
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.antlr.org_api_maven-2Dplugin_latest_dependency-2Dinfo.html&d=DwICaQ&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=Ql5uwmbofQMW0iErugdCnFgO-CBGr_pt_OzwdxJosG0&m=nRiDxwbhq-IuQJmgLg2hhUqK_UsIqKWJAqUcywTbz-Y&s=IjFObLVM57HemB8uaI20Eq7Qe7CY2VNfOQA7O5qQfZ8&e=.
>> I am not very smart. I have spent a few days trying to figure out the
>> best way to compile a Java project. I have tried Ant, CMake, and now
>> Maven. Maven seems like the easiest to use, but I can not solve this
>> problem I am having.
>> Respectfully,
>>      R0b0t1.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message