Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » How to install ANTLR4 in Eclipse? (For titan plugin developers)(If you are not only a titan plugin user but a titan plugin developer, you need this guide to install prerequisites.)
icon3.gif  How to install ANTLR4 in Eclipse? (For titan plugin developers) [message #1722966] Wed, 10 February 2016 15:26 Go to next message
Jeno Attila Balasko is currently offline Jeno Attila BalaskoFriend
Messages: 80
Registered: September 2013
Location: Budapest, Hungary
Member

1. Use eclipse 4.4 or 4.5 (eclipse java sdk for plugin developers/rcp developers OR Eclipse IDE for Eclipse Committers)
2. Install XText 2.7.3 (and not higher) from http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/ .
3. Download antlr 4.3 from here: http://www.antlr.org/download/antlr-4.3-complete.jar
4. Install ANTLR4 Runtime and Apache POI 4.3.0 according to the Designer install guide ( from http://download.eclipse.org/tools/orbit/downloads/drops/R20150821153341/repository/ plugin update site)
5. Install ANTLR4IDE:
-Open Eclipse Luna (4.4)
-Go to: Help > Eclipse Marketplace...
-Search for antlr
-Choose ANTLR 4 IDE and click Install
-Restart Eclipse
6. Configure antlr4ide after installation.
The configuration dialog can be found on the Windows/Preferences/ ANTLR 4 / Tool path.
There is a category ANTLR Tool. Set "Tool is activated" and set the just installed antlr-4.3-complete.jar as distribution (see the picture ANTLR4.3.PNG).
There in the "Options" category the "Directory" path has to be set to "./src/". This will configure the antlr compiler to generate the Java output in the exact same folder where the ANTLR source files are located. This is needed to have a good package structure.
In the "Options" category it is also useful to:
Unset the option to generate a parse tree listener
Unset the option to generate parse tree visitors o Set the option the delete generated files, when clean build is triggered o Set the option to mark generated files as derived

Note: If you are use titanium you need more prerequisites described in the Eclipse_installationguide (for plgin users).

Br Jeno Balasko
  • Attachment: ANTLR4.3.PNG
    (Size: 74.71KB, Downloaded 635 times)
Re: How to install ANTLR4 in Eclipse? (For titan plugin developers) [message #1722970 is a reply to message #1722966] Wed, 10 February 2016 15:37 Go to previous message
Gustavo Gonnet is currently offline Gustavo GonnetFriend
Messages: 36
Registered: October 2015
Location: Montreal, Quebec, Canada
Member
good to know, thank you
Previous Topic:Migrating Titan to Windows
Next Topic:Negative Testing in Eclipse Titan: Fuzzing basics
Goto Forum:
  


Current Time: Fri Apr 26 21:41:00 GMT 2024

Powered by FUDForum. Page generated in 0.95264 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top