Showing errors on ecclipse but not showing errors when compiling on command prompt
Hi when I use ecclipse to run codes it shows many errors, and they are not errors at all I compiled them with command prompt and it work.
this is the image
http://i.imgur.com/az6Pg.jpg
My java and javac version is 7 u 2
Re: Showing errors on ecclipse but not showing errors when compiling on command promp
What is the content of these error messages? That is, when you mouse over the underlined code, what does Eclipse tell you?
Often, IDE's provide warnings as well as errors; errors are problems that will terminate your program either upon compilation or during runtime whereas warnings are more based around general coding style rules and non-destructive issues to your program.
Re: Showing errors on ecclipse but not showing errors when compiling on command promp
I am not sure why you asked for help here if your code works fine when you compile it with CMD. Just use that and compile it and keep it the way it is.
Re: Showing errors on ecclipse but not showing errors when compiling on command promp
Indicate your preferences for the Errors/Warnings settings on the Opens the Errors/Warnings preference page Java > Compiler > Errors/Warnings preference page.