I am getting some errors with my Java Compiler. I am not getting errors outside of Eclipse, but it only seems to happen in Eclipse Indigo. This is not necessary, but if you
It happens when you use the JRE as Standard VM in Eclipse. Please use the JDK as Standard VM. It will work then.
Have a look at this.
For more information in setting the java VM see Running Eclipse#Setting the java VM