RE: [antlr-discussion] Problems building ANTLR v4 from source using ant : [java] error(7): cannot find or open file: *.g

269 views
Skip to first unread message

Sam Harwell

unread,
Mar 2, 2013, 11:51:04 AM3/2/13
to antlr-di...@googlegroups.com
You need to use Maven to build ANTLR 4 from source.

See Building ANTLR 4 with Maven:
http://www.antlr.org/wiki/display/ANTLR4/Building+ANTLR+4+with+Maven

--
Sam Harwell
Owner, Lead Developer
http://tunnelvisionlabs.com

-----Original Message-----
From: antlr-di...@googlegroups.com [mailto:antlr-di...@googlegroups.com] On Behalf Of dims...@gmail.com
Sent: Saturday, March 02, 2013 9:43 AM
To: antlr-di...@googlegroups.com
Subject: [antlr-discussion] Problems building ANTLR v4 from source using ant : [java] error(7): cannot find or open file: *.g

Hellp,
I was trying to build ANTLR version 4 from source, as I downloaded it from the official website, but I cannot do it using ant. I downloaded the antlr-3.5-complete-no-st3.jar to the /lib folder as build.xml says, but when I run ant it returns:

[mkdir] Created dir: /../antlr/antlr4-master/build/generated-sources/antlr3/org/antlr/v4/parse [java] error(7): cannot find or open file: *.g

BUILD FAILED /../antlr/antlr4-master/build.xml:108: The following error occurred while executing this line: /../antlr/antlr4-master/build.xml:84: Java returned: 1

I am on a MacBook running OSX 10.8.2
Is there anything else I have to do in order to have a successful compilation using ant?

Thanks in advance,
Dimos

--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Terence Parr

unread,
Mar 2, 2013, 12:11:58 PM3/2/13
to antlr-di...@googlegroups.com
actually I build with ant all the time. i'll look at it.
T
--
Dictation in use. Please excuse homophones, malapropism, and nonsense. 

Terence Parr

unread,
Mar 2, 2013, 3:09:31 PM3/2/13
to antlr-di...@googlegroups.com


On Sat, Mar 2, 2013 at 7:42 AM, <dims...@gmail.com> wrote:
Hellp,
I was trying to build ANTLR version 4 from source, as I downloaded it from the official website, but I cannot do it using ant. I downloaded the antlr-3.5-complete-no-st3.jar to the /lib folder as build.xml says, but when I run ant it returns:

[mkdir] Created dir: /../antlr/antlr4-master/build/generated-sources/antlr3/org/antlr/v4/parse [java] error(7): cannot find or open file: *.g

BUILD FAILED /../antlr/antlr4-master/build.xml:108: The following error occurred while executing this line: /../antlr/antlr4-master/build.xml:84: Java returned: 1

I am on a MacBook running OSX 10.8.2
Is there anything else I have to do in order to have a successful compilation using ant?

Thanks in advance,
Dimos

--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Message has been deleted

dims...@gmail.com

unread,
Mar 2, 2013, 8:36:37 PM3/2/13
to antlr-di...@googlegroups.com
On Saturday, March 2, 2013 11:51:04 AM UTC-5, Sam Harwell wrote:
> You need to use Maven to build ANTLR 4 from source.
>
>
>
> See Building ANTLR 4 with Maven:
>
> http://www.antlr.org/wiki/display/ANTLR4/Building+ANTLR+4+with+Maven
>
>
>
> --
>
> Sam Harwell
>
> Owner, Lead Developer
>
> http://tunnelvisionlabs.com
>
>
>
> -----Original Message-----
>
>
> Sent: Saturday, March 02, 2013 9:43 AM
>
> To: antlr-di...@googlegroups.com
>
> Subject: [antlr-discussion] Problems building ANTLR v4 from source using ant : [java] error(7): cannot find or open file: *.g
>
>
>
> Hellp,
>
> I was trying to build ANTLR version 4 from source, as I downloaded it from the official website, but I cannot do it using ant. I downloaded the antlr-3.5-complete-no-st3.jar to the /lib folder as build.xml says, but when I run ant it returns:
>
>
>
> [mkdir] Created dir: /../antlr/antlr4-master/build/generated-sources/antlr3/org/antlr/v4/parse [java] error(7): cannot find or open file: *.g
>
>
>
> BUILD FAILED /../antlr/antlr4-master/build.xml:108: The following error occurred while executing this line: /../antlr/antlr4-master/build.xml:84: Java returned: 1
>
>
>
> I am on a MacBook running OSX 10.8.2
>
> Is there anything else I have to do in order to have a successful compilation using ant?
>
>
>
> Thanks in advance,
>
> Dimos
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.

That's correct!
Thanks a lot!

suresh...@gmail.com

unread,
Apr 8, 2015, 4:57:13 AM4/8/15
to antlr-di...@googlegroups.com

On Sunday, March 3, 2013 at 1:39:31 AM UTC+5:30, the_antlr_guy wrote:
Ter 

This  link is not working. Could you please provide the correct link.
 
Thanks, Suresh 

Eric Vergnaud

unread,
Apr 8, 2015, 8:57:40 AM4/8/15
to antlr-di...@googlegroups.com
Hi,

since 2013, the build has moved from Ant and/or Maven to bilder.py, a Python script.

Eric
Reply all
Reply to author
Forward
0 new messages