[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JARs and lexer.dat



It is a resource, so you have to put it into the same directory as Lexer.class. So your jar file should contain
my.grammar.Lexer.class and
my.grammar.lexer.dat


And, of course, the same is the case for Parser.class and parser.dat.
BTW, if you use an IDE like eclipse, resources in source directories will usually be copied automatically to the respective class directory.



Philip Degarmo wrote:


I am jaring my program for distribution of the program. (It has no web site
as it is software that I'm not ready to release online yet)

I have problems with the program not finding the lexer.dat. Where do I need
to put it? I have tried mimicking where it is in the directory i.e.
/src/pckg1/pckg2/[here] as jaring where everything becomes /pckg1 etc. Then
I tried putting it in the same folder as the jar file is. Where should it
be?

Thanks in advance,
Philip
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.590 / Virus Database: 373 - Release Date: 2/16/2004