project/src/es/ull/etsii/pl/MainClass.java -> My main class.
Just to be precise, the grammar files are Analex and Anasyn, located in the package es.ull.etsii.pl.analyzers. When compiled, they are placed inside the build folder, within the same package.
The main class imports both Analex and Anasyn specifically.
I use ANT to manage the project, and compiling the grammar files works. Sadly compiling the main class fails because it cannot find the symbols for the lexer and the parser I already compiled, even though I am giving the correct classpath (I suppose). The baffling part is that, I have used the same build.xml to compile other projects with the same folder structure. The only difference is that I have migrated from ANTLR2 to ANTLR3.
This is the target that fails:
And this is the ant log:
I hope I haven't forgotten something and that any of you guys can help me.
By the way, removing or altering the package structure is not an option.