Results 1 to 4 of 4
Thread: running ANTLR from Eclipse???
- 10-24-2009, 02:00 AM #1
Member
- Join Date
- Oct 2009
- Posts
- 2
- Rep Power
- 0
running ANTLR from Eclipse???
Has anyone tried to run the ANTLR generated code for a grammar from Eclipse?
I try to create a Java project from the ANTLR output folder but when I run it I get:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
ANTLRFileStream cannot be resolved to a type
CommonTokenStream cannot be resolved to a type
CommonTokenStream cannot be resolved to a type
The method prog() from the type RichExprParser refers to the missing type RecognitionException
RecognitionException cannot be resolved to a type
at __Test__.main(__Test__.java:11)
Did I install the ANTLR plugin completely, or do I need to specify additional ANTLR libraries somehow?
In my installed software tab for Eclipse I see:
org.antlr.ui 4.1.1 org.antlr.ui.feature.group
This feature is an user interface for the ANTLR
framework for constructing recognizers,
compilers, and translators ...(URL removed)...
It consists of five plugins, two hold the ANTLR binaries
and documentation, the others contain a compiler and
an editor for ANTLR grammar files, and the ANTLR XML Support plugin.
- 10-24-2009, 02:03 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Add those libraries to the project you created where you want to use them in.
- 10-24-2009, 02:19 AM #3
Member
- Join Date
- Oct 2009
- Posts
- 2
- Rep Power
- 0
How do I add the libraries?
I am very new to Eclipse so I don't know my way around it yet. I tried:
project properties
Java Build Path
Libraries tab
Add Library
It asks what library type to add, but none of the types (JRE, JUnit, Plugin, User) list the ANTLR plugin?
- 10-24-2009, 02:22 AM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
how to run web server w/out running at eclipse?
By anthrax in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 07-13-2009, 09:06 AM -
Equinox problems running on Eclipse 3.4
By jguerra in forum EclipseReplies: 0Last Post: 09-05-2008, 02:34 PM -
[SOLVED] Error while running eclipse
By kimskams80 in forum EclipseReplies: 3Last Post: 07-02-2008, 11:31 AM -
Running Tomcat in Linux from Eclipse.
By Felissa in forum EclipseReplies: 1Last Post: 06-05-2007, 05:47 AM -
ANTLR 3.0 final release May 17, 2007
By derrickD in forum Java SoftwareReplies: 0Last Post: 05-18-2007, 06:32 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks