your right about not using eclipse for scjp work. I find netbeans ok though for non-classpath related work. @jagan - you havn't stated what version of jre/eclipse your using, also check your jdk compiler compliance level
eclipse 220.127.116.11 & jdk 1.6.0_05 seems consistent in this situation [ July 06, 2008: Message edited by: Frank Zito ]
Joined: Jun 08, 2008
hi Frank Zito, sorry i forgot to mention it. mine is jdk 1.5 & Eclipse-SDK-3.3.2 Thanks to all.
If you're preparing for the SCJP, I think you're much better off working in an environment that doesn't instantly flag potential errors for you. You need to develop your own ability to look at the code and recognize what -- if anything -- might be wrong.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
Eclipse has its own built-in Java compiler (based on IBM's Jikes compiler). Ofcourse that compiler is supposed to be 100% compatible with Sun's compiler from the JDK, but like any big and complicated piece of software Eclipse isn't completely bugfree.
I'm using Eclipse everyday, and it's rare, but I've encountered situations once or twice where the Eclipse compiler would give an error while the JDK compiler would not or the other way around.
For preparing for SCJP, it's best to use Sun's compiler from the JDK. [ July 07, 2008: Message edited by: Jesper Young ]