I'm pretty sure the reason for your problem is that you're using a GNU Java compiler instead of the one located in your JDK installation. Unfortunately I don't have any experience with this compiler but a lot more with linux and Java development on linux and this error message sounds like a problem with gcj (GNU compiler) or a library of it not with the JDK or your test program.
Maybe the GNU compiler is located in your search path before the JDK compiler. You can check this by typing "which" on the command line. This tells you which version of javac is used on your system if there should be more than one. Please take a look if this is really the JDK compiler! Possibly the symlink you created doesn't work like expected or something like this.
Just let me know if you can't figure out the problem!
Marco
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
a bit of art, as a gift, the permaculture playing cards