I call javac from my ant script like this:
adding the -XDignore.symbol.file option to the javac command line worked for me.
-XDignore.symbol.file
javac