Try calling "javac" from the command-line and see if it works.
Why? The "Eclipse Compiler for Java" is working fine.
To track why you still get errors, only that. Eclipse compiler is just as good, if not better, than JDK compiler.