Fundamentals 4 min read

How to Install and Use PlantUML Plugin in IntelliJ IDEA for UML Diagram Creation

This guide explains what PlantUML is, its advantages, and provides step‑by‑step instructions for installing the PlantUML plugin and Graphviz on Windows, configuring IntelliJ IDEA, and creating UML diagrams directly within the IDE, including sample code and alternative Chrome extension options.

Code Ape Tech Column
Code Ape Tech Column
Code Ape Tech Column
How to Install and Use PlantUML Plugin in IntelliJ IDEA for UML Diagram Creation

PlantUML is an open‑source tool that lets you quickly create UML diagrams using a simple textual language, rendering the graphics via the Graphviz library and exporting them as PNG or SVG files.

Its main advantages are full‑text editing without drag‑and‑drop, platform‑independent operation (only a PlantUML JAR is required), and integration with many editors and IDEs such as IntelliJ IDEA, Eclipse, and Notepad++.

For Java developers who use IntelliJ IDEA, the article walks through installing the PlantUML Integration plugin via File → Settings → Plugins → Search "PlantUML" → Install .

It also covers installing Graphviz on Windows (download the MSI from the official site) and configuring environment variables:

Add a variable GRAPHVIZ_HOME with the installation path, e.g., D:\WorkWare\Graphviz2.38 .

Append %GRAPHVIZ_HOME%\bin to the Path variable (separate entries with a semicolon).

Set GRAPHVIZ_DOT to %GRAPHVIZ_HOME%\bin\dot.exe .

After confirming the installation with dot -version in a command prompt, you configure IntelliJ IDEA to use Graphviz via File → Settings → Other Settings → PlantUML .

To create a diagram, create a new .uml file, write PlantUML code such as:

@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
@enduml

The IDE will render the diagram in real time. You can also generate class diagrams from existing code or use the Chrome extension "PlantUML Viewer" to edit and view diagrams directly in the browser without installing Graphviz.

PlantUMLUMLIntelliJ IDEAGraphvizIDE plugins
Code Ape Tech Column
Written by

Code Ape Tech Column

Former Ant Group P8 engineer, pure technologist, sharing full‑stack Java, job interview and career advice through a column. Site: java-family.cn

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.