I need to maintain some project in Java, but it is very big. I need some plugin for Eclipse or program alone which can generate UML from Java project. Is there something what can help me ?
8 Answers
This has been asked before.. please find it at
How to generate UML diagrams (especially sequence diagrams) from Java code

- 1
- 1

- 1,573
- 13
- 16
-
Link you have provided is broken. Please update your answer. – OO7 Feb 09 '15 at 12:10
-
Link seems to work ok and lists lots of good options. – abulka Sep 11 '19 at 03:59
-
Also check out my http://www.gituml.com which generates UML diagrams from Java & Python code in GitHub repositories. Diagrams automatically update when you push code using git. – abulka Sep 11 '19 at 04:01
I recommend Architexa for its great class digram generation. Instead of generating every classes in a huge class diagram, Arhitexa allows you to selectively display the relevant classes in the diagram.

- 620
- 6
- 13
-
Architexa does not work any any remotely recent version of Eclipse. The last version that works is 4.2 and 4.8 was just released. – robross0606 Aug 09 '18 at 18:39
Most UML tools can import Java code. Last time I used JUDE Community edition it could do it, but they've split it into community and paid editions. I'm not sure if the free one does anymore. Sparx Enterprise Architect can import Java as well.

- 305,152
- 44
- 369
- 561
-
+1 because Enterprise Architect is a great UML tool (great diagramming tool in general). – Chris Kessel Dec 15 '10 at 22:24
Umbrello supports Java code import, and it is open source, so will cost you nothing to try.
You might also give Doxygen(with GraphViz) a go; it will generate UML 'style' class diagrams and is a great code navigation tool for unfamiliar code-bases. Not truly a UML tool though, but might suit your requirements.
I suggest euml2 as an eclipse pluggin.
It has a free version and it is quite good!

- 52,998
- 69
- 209
- 339
-
1eUML will add tags in your code and will entirely rewrite your code in order to add model annotation in the code. The model is said to be corrupt and if you need advanced features then you have to pay over $1600 !! To absolutely avoid – UML GURU Dec 15 '10 at 23:26
-
@user294000:Well it adds meta-data in comments e.g. `/*** @uml.property name="variableName"* @uml.associationEnd */` but that did not create a problem for me. I have used it for class diagrams and package diagrams and was ok. If you have more advanced usage experience and you saw bugs, well thank you for telling me to keep in mind – Cratylus Dec 16 '10 at 06:28
-
@user294000:Also it has a free version for the basic stuff. The other suggestions are very good but have only trial versions. – Cratylus Dec 16 '10 at 06:41
I recommend Enterprise Architect which supports full reverse and forward engineering including for Java. Automatic Documentation generation as Word, PDF or website.

- 5,437
- 28
- 44
Free Class Visualizer does exactly that - you load compiled Java code and, as a result, receive class diagrams allowing you to navigate through relations. It supports parametrized types, annotations and discovers all sort of outbound and inbound relations (including dependencies).

- 1,821
- 2
- 15
- 9