Java UML Generator plugin for Eclipse

Yet another brilliant Eclipse plugin: http://www.objectaid.com

Create a Diagram and then drag the wanted files onto it.

Remember to save as a JPG instead of GIF because some text is missing when using GIF.

I recommend the following disabling:

  • Disable package (for smaller projects)
  • attribute defaults (default values)
  • icons (remove eclipse symbols and use normal UML)
  • dependencies/add relationsships/labels/nesting

JUnit jar classpath error in Eclipse

When trying to develop unit tests using JUnit 4 and Ant 1.71 in Eclipse 3.6.1, I kept getting this error even though I had added JUnit.jar to the Eclipse buildpath:
The <classpath> for <junit> must include junit.jar if not in Ant's own classpath
The solution was to do the following:
Window -> Preferences -> Ant -> Runtime -> Classpath: Add JUnit.jar to the Global Entries as an external Jar-file.