John Batista wrote:Different error message? this is unexpected. Did you run from console using java command? I run this from eclipse.
@Udara: so it's compile error as in Error type? not exception? I'm still a bit confused.
In here compiler errors means just errors that appears in the comply time because of inappropriate syntax, try to comply not java files or mistakes like that...
But there is runtime errors that throws by JVM when found unrecoverable errors. And they are derived from java.lang.Error class.
And Exceptions are thrown by the program. Programs can recover from those. And they are derived from java.lang.Exception class.
these tutorial will helps you
tutorial.
Michael Ernest wrote:I did run it from a console, as I figured the error you received must have something to do with how the IDE editor and verifier are interacting.
I didn't try it with eclipse IDE. So perhaps.