ClassNotFoundException

0 votes
asked Mar 2 in Bug by LostDev
MIT License jar file on windows

example file:

@startuml

Alice -> Bob: Authentication Request

Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request

Alice <-- Bob: Another authentication Response

@enduml

powershell:  java -jar lib\\plantuml.jar example.plantuml

Exception in thread "main" java.lang.NoClassDefFoundError: com/plantuml/api/cheerpj/WasmLog
        at net.sourceforge.plantuml.BlockUmlBuilder.init(BlockUmlBuilder.java:146)
        at net.sourceforge.plantuml.BlockUmlBuilder.<init>(BlockUmlBuilder.java:105)
        at net.sourceforge.plantuml.SourceFileReaderAbstract.<init>(SourceFileReaderAbstract.java:101)
        at net.sourceforge.plantuml.SourceFileReader.<init>(SourceFileReader.java:80)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:497)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:411)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:378)
        at net.sourceforge.plantuml.Run.main(Run.java:212)
Caused by: java.lang.ClassNotFoundException: com.plantuml.api.cheerpj.WasmLog
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 8 more
commented Mar 3 by albert (3,320 points)
Which version of plantuml are you using?

Which version of java are you using?

What happens when you use the jar file from https://github.com/plantuml/plantuml/releases

1 Answer

0 votes
answered Mar 4 by plantuml (289,760 points)

Sorry about that!

We have fixed the issue. You can try to download MIT version again. It's not exactly 1.2023.2 but at least it should be working now.

...