antlr.jar not automatically referenced
Brought to you by:
tjuerge
On both windows and linux when i install the plugin I
dont get an association with the antlr.jar for the project.
After the .java files are created by antlr Eclipse
moans about not being able to import antlr.
Im fixing it by hand atm by adding antlr.jar as an
external jar.
submitted by martin@ideaworks3d.com
Logged In: YES
user_id=559460
What do you expect to be done by antlreclipse?
- Creating an entry in a project's "Java Build Path/Libraries"
which points to antlr.jar stored the "org.antlr" Eclipse plugin.
This only makes sense for Eclipse plugins which are using
ANTLR internally.
- Guessing a location of 'antlr.jar' which is part of the project,
e.g. by examining all jars in the project.
- Prompting for an external jar.
Logged In: YES
user_id=230522
I've set up the next big release to automatically add the
antlr.jar via a new ANTLR_HOME classpath variable (which
the plugin sets up)
Logged In: YES
user_id=372260
This can be closed. I verified that the jare is associated
with the project. However, I don't know if that's the
correct solution. Your generated parsers/scanners will never
work outside of the Eclipse workspace because the jar is not
available there.
There are two options if you want to deploy your project as
Eclipse plug-in:
1. Provide the jar inside your project
2. Provide an org.eclipse.antlr plug-in and make your
plug-in depend on it
Logged In: YES
user_id=230522
I'm going to look into copying the antlr jar into the
project and referencing it that way. I may not get to this
for a while though.