I'm trying to write a simple ant build to compile a project. The project is in eclipse and there it compiles successfully (with the eclipse-compiler). But with ant (using javac) it appears an error and i don't know how to resolve it.
Structure of the used jar:
- com
- xxx
- a <= package
- b
- a.class
- a <= package
- xxx
Codeblock of my class:
Object o = com.xxx.a.b.method();
^
The exception of ant is:
error: cannot find symbol
symbol: variable b
location: class a
I think eclipse uses the package first to try to compile the code. javac seems to think that a is the class.
Is there a way to resolve the problem without changing the jar?