timing diagram generation works in plantuml webserver but fails with plantuml.jar command line

0 votes
asked Mar 15, 2022 in Bug by rsandeepu (320 points)

The below plantuml code get the diagram generated with plantuml webserver.

Is it my java version issue or plantuml.jar issue ?

Code in temp.puml

@startuml
Title Timing Diagram 
clock clk with period 1000
binary "<b><back:lightsalmon>temp2_flow" as temp

@00002419 as :temp_frame_0
temp@:temp_frame_0 <-> @:temp_frame_0+1 : <latex>\rotatebox{90}{Indicator text0}</latex>
@00003360 as :temp_frame_1
temp@:temp_frame_1 <-> @:temp_frame_1+1 : <latex>\rotatebox{90}{Indicator text1}</latex>
@enduml

Passing via webserver//www.plantuml.com/plantuml/png/ZT2nQiCm483XNKznP2sbKb8ACS9uwD8zOy6SPSKvV9A2V2Kf8UzUYInDirIJxfVWW-iMmInVWTMEX3tiA52Su9rmoXX0EKvk1iSpd4WESFIPqWX6Qwq6YfY_OMM7rWxevePfEiY2759inOVZkjzpEgq05wYZKfqkP_rgjZKrjVNxelXUgpfqTmdiSmltwSb00vPH_Bdzp4dAPKZdorPVBnzn98UICfH7qLVxSljsCpURD_tND8-cUJJDlqtpo_HnB2lz0G00
Failing via plantuml.jarjava/1.9.0.0/bin/java -jar plantuml-1.2022.2.jar -tsvg temp.puml
Fails with this error
formula=\rotatebox{90}{Indicator text1}
Latex=\rotatebox{90}{Indicator text1}
java.lang.ClassNotFoundException: org.scilab.forge.jlatexmath.TeXFormula
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582

1 Answer

+1 vote
answered Mar 15, 2022 by rsandeepu (320 points)

Found the solution here in this link

https://plantuml.com/ascii-math

Since JLatexMath is bigger, you have to download it separately, then unzip the 4 jar files (batik-all-1.7.jarjlatexmath-minimal-1.0.3.jarjlm_cyrillic.jar and jlm_greek.jar) in the same folder as PlantUML.jar.

...