What version of the JDK are you using? I am guessing 6. Try compiling it with 1.5 (6 is not yet qualified).
Yes, I'm using 6
Try compiling it with 1.5
That is the key. Pay atention if you using Ubuntu 10.10, that there is symlink structure in /etc/alternatives which forces you to use Open JDK 6. Symlinks wasn't been removed even if I run sudo apt-get remove java-6-openjdk..