Eclipse does a good job pointing out Java syntax errors. To prevent bugs at the coding level you need to go much further. Two utilities make your live much easier here. One is
Checkclipse, the other
FindBugs. Checklipse runs as an extension to the Eclipse syntax checker and encourages you to write proper code (including white spaces between symbols, so "a+b" is wrong but "a + b" is OK).
FindBugs can run stand-alone (via command line, Java Webstart or Ant) or as Eclipse plug-in. It provides even more checking options.
Found via
SDMagazin/Holub.
And while you are on it, why not test
Websphere (unless you live in a restricted country, which SF thinks includes Singapore)?