天天看點

IDEA在windows環境下安裝PlantUML

環境(idea2020.1)

一.插件下載下傳位址

1.網站下載下傳插件

https://plugins.jetbrains.com/plugin/7017-plantuml-integration

IDEA在windows環境下安裝PlantUML
IDEA在windows環境下安裝PlantUML

選擇最新的 點選Download下載下傳

IDEA在windows環境下安裝PlantUML

下載下傳後直接在plugins導入就行

IDEA在windows環境下安裝PlantUML
IDEA在windows環境下安裝PlantUML

導入後重新開機即可

2.在idea市場下載下傳

IDEA在windows環境下安裝PlantUML
IDEA在windows環境下安裝PlantUML

重新開機idea

二、下載下傳graphviz

重新開機後建立class的puml 出現如下問題

IDEA在windows環境下安裝PlantUML
 1.安裝graphviz

https://graphviz.org/_pages/Download/Download_windows.html

IDEA在windows環境下安裝PlantUML

下載下傳後傻瓜式安裝

2.配置環境變量

我是安裝安裝到e盤的 找到bin目錄 複制路徑,添加到系統環境path變量中

IDEA在windows環境下安裝PlantUML
IDEA在windows環境下安裝PlantUML

3.cmd指令視窗驗證

輸入dot -version

IDEA在windows環境下安裝PlantUML

表示安裝成功!

4.重新開機idea

IDEA在windows環境下安裝PlantUML
IDEA在windows環境下安裝PlantUML
IDEA在windows環境下安裝PlantUML

如果還是提示上面的錯誤 沒有顯示

解決辦法:

打開 open Settings

IDEA在windows環境下安裝PlantUML

選擇graphviz安裝目錄bin下的dot.exe 然後确定即可

IDEA在windows環境下安裝PlantUML