You can specify the path and the classpath for java and javac in the ANTLRWorks preferences. I've never done it but I think this is what you are looking for.
On Wed, Apr 28, 2010 at 13:50, Razvan Radu <[email protected]> wrote: > Hello, > In the last days i search everywhere for an answer to this: > How can i import a class or a jar file in my .g file in ANTLRWorks. > I se that you can import thinks like: > > @header { > import java.util.HashMap; > } > > but i can't import classes that i created in other project, or jar files of > that project. > I tried everythink, for example: > > @header { > import mypackage.ClassName; > } > and i put this jar in the same location whit the .g file and the generated > files, but it dosen't work. > > Please help me! > > Thank you. > > > > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
