Andreone / dokuwiki_plantuml

A plugin for Dokuwiki that generates UML graphs from text using PlantUML
http://www.dokuwiki.org/plugin:plantuml
13 stars 20 forks source link

local rendering does not work #19

Open aaa34169 opened 9 years ago

aaa34169 commented 9 years ago

Hi

thanks you for your plugin first. it s a great feature for my electrnic notebook.

unfortunatly, he doen't work. I succeed to generate a png with the simple command : c:/plantnum.jar test.txt but when i used the dokuwiki plugin, it fails my configuration is : Render Locally = Yes Path to Java = "C:/Program Files/Java/jre7/bin/java.exe" Path to Plant UML jar File = /c:/plantnum.jar Remote url of PlantUML servlet = Enable "New UML Graph" button in editor = Yes Image used to draw the toolbar button = res/icon1.png

i have a "prohibited sign" instead of my png

Andreone commented 9 years ago

I think that the path to plantuml jar is wrong. Should be c:\plantuml.jar

jkettsjr commented 9 years ago

We use Linux not widows.

There is an error in the code that prevents it from publishing well. It seems to render but only to a temp directory.

We wrote a script as a work around a long time ago. I am not sure our team is even using the tool anymore

-------- Original message -------- From: Andreone notifications@github.com Date: 06/19/2015 9:56 AM (GMT-05:00) To: Andreone/dokuwiki_plantuml dokuwiki_plantuml@noreply.github.com Subject: Re: [dokuwiki_plantuml] local rendering does not work (#19)

I think that the path to plantuml jar is wrong. Should be c:\plantuml.jar

Reply to this email directly or view it on GitHubhttps://github.com/Andreone/dokuwiki_plantuml/issues/19#issuecomment-113522531.

The information contained in this message, and any attachments, may contain privileged and/or proprietary information that is intended solely for the person or entity to which it is addressed. Moreover, it may contain export restricted technical data controlled by Export Administration Regulations (EAR) or the International Traffic in Arms Regulations (ITAR). Any review, retransmission, dissemination, or re-export to foreign or domestic entities by anyone other than the intended recipient in accordance with EAR and/or ITAR regulations is prohibited.

izacaslo commented 8 years ago

@jkettsjr I use linux too. I did try the remote and local rendering, but both fail: i get a "prohibited sign" instead as well. Can u please help me with it?

wade0564 commented 8 years ago

I also have this problem in windows . My plantuml configuration as follow : The path to your Java runtime interpreter : D:/Program Files/Java/jdk1.7.0_71/bin/java.exe The path to the PlantUML jar file : D:/worksapce/repos/trunk/zhouwu/plantuml/plantuml.jar but the uml diagram is generated fail.

config items wrong or some other reason ?

I'm sure the plantuml.jar and java runtime env are both ok.But I cant find any log infomation to solve this problem.

MichaelLing83 commented 7 years ago

Hi,

Maybe this is obvious, but I just want to say it for the record. And I'm using the stand-alone version of DokuWiki.

The problem is in the path to Java runtime interpreter. You cannot have a space there. So please try to use the following:

The path to your Java runtime interpreter (eg. /usr/bin/java): "C:\Program Files\Java\jre1.8.0_112\bin\java.exe" The path to the PlantUML jar file: C:\somewhere_withou_spaces\plantuml.jar

BTW, if you check the box "Allow debug", there will be a debug.log under data/cache stating what went wrong.

perlyking commented 6 years ago

Following @MichaelLing83's advice I checked the log and I had mistyped the path to the jar. On Ubuntu 14.04 I also removed openjdk-9 and reverted to jre-default.