-thtml generates just "Back to index" line

0 votes
asked Apr 22, 2020 in Question / help by VicBy

Trying to generate html from my class diagram with the following command:

java -jar plantuml.jar xxx.plantuml -thtml

which results in creating index.html with the following content only (png and svg are generated with content):

<html>
<hr>
<a href=index.html>Back to index</a>
</html>

commented Apr 23, 2020 by albert (3,520 points)
edited Apr 23, 2020 by albert

When I run plantuml on a file with:

@startuml
version
@enduml

it is even worse, I get:

Exception in thread "main" java.lang.UnsupportedOperationException: HTML
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.createUGraphic(ImageBuilder.java:415)
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageInternal(ImageBuilder.java:240)
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageTOBEMOVED(ImageBuilder.java:181)
        at net.sourceforge.plantuml.version.PSystemVersion.exportDiagramNow(PSystemVersion.java:172)
        at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:135)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagramsDefault(PSystemUtils.java:156)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:99)
        at net.sourceforge.plantuml.SourceFileReaderAbstract.getGeneratedImages(SourceFileReaderAbstract.java:159)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:519)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:403)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:371)
        at net.sourceforge.plantuml.Run.main(Run.java:187)

plantuml command:

java -Djava.awt.headless=true -jar %PLANTUML_JAR% -thtml file.pu

plantuml version:

PlantUML version 1.2020.07beta15

also for:
PlantUML version 1.2020.08beta5
commented Apr 23, 2020 by albert (3,520 points)
I would also like to bring to the attention the issue from June 2018:

https://forum.plantuml.net/7799/problem-with-utxt-ascii-output-standard-commands-also-tscxml?show=7802#c7802

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...