Menu

#9 antlr.jar not automatically referenced

UI
open
nobody
None
5
2003-12-07
2003-12-05
Anonymous
No

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

Discussion

  • Torsten Juergeleit

    • milestone: --> UI
     
  • Torsten Juergeleit

    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.

     
  • Scott Stanchfield

    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)

     
  • Gunnar Wagenknecht

    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

     
  • Scott Stanchfield

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB