This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hola, I have recently downloaded Eclipse 3.0.2 and happily rushed to try it out on a simple app from a Java book. In an attempt to run that app in Eclipse it reported several synthax errors, but when I tried to compile the same app "manually" (source code in Notepad, javac command on the command prompt etc.) none of those errors were reported and the app executed just as expected. No changes were made in the source code while attempting to compile from the command prompt. How can that be, a synthax error in Eclipse is not a synthax error out of it?! JEdit is a story too... compiler plug-in is reported to be missing when attempting to compile, although Plug-in Manager lists it as present and I am sure that it was downloaded... am I doing something wrong?
Gjorgi, Can you post the error that you are getting? That will help us give a more specific answer.
In general, Eclipse allows you to customize whether certain things are treated as warnings, errors or ignored. For example, you can have Eclipse warn you about unused code. It is possible these settings are what is triggering your error. It could also be a classpath issue.
It basically objects to use of commas during array initialization (although I don't understand why is the last objection on ")"). The same untouched code that raised the exception was not at all objectionable during command-line compilation...
Jeroen is right. I you want to use Java 5, you need to install the latest Eclipse 3.1 milestone.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus