What is the class path to execute plantuml jar file

+1 vote
asked Jul 19, 2017 in To be sorted by anonymous

Hi,

I am trying to integrate plantuml with doxygen in the test environment at my work. The way the environment is setup, we want to place all the java applications in one place specified by the CLASSPATH and execute the applications with their class names.

I couldn't find the class name to use to execute plantuml.jar, or I am just not doing it right. I will appreciate any help you can provide. I have tried several ways to specify the classpath (directory containing plantuml, plantuml jar file, wildcard matched to everything in the directory plantuml is in, so on) and not succeeded. Probably the class that I am trying to execute is incorrect. Here is what it looks like when I try:

$ ls dist/plantuml.jar -l

-rw-rw-r-- 1 blah blah 5916287 Jul  4 03:10 dist/plantuml.jar

$ CLASSPATH="$CLASSPATH:/home/blah/shared/workspace/dist/plantuml.jar" java net.sourceforge.plantuml.ant.PlantUmlTask -testdot

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Task

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:803)

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

        at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)

        at java.net.URLClassLoader.access$100(URLClassLoader.java:64)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:354)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:348)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:347)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Task

        at java.net.URLClassLoader$1.run(URLClassLoader.java:359)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:348)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:347)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures}

        ... 13 more

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.
...