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