我想從yDoc庫生成uml圖。它基本上使用Javadoc來解析Java源文件。然而,當我試圖執行從終端(OS X)的命令,我收到以下錯誤:Javadoc錯誤 - java.lang.reflect.InvocationTargetException
javadoc: error - In doclet class ydoc.doclets.YStandard, method start has thrown
an exception
java.lang.reflect.InvocationTargetException java.lang.NoSuchMethodError:
com.sun.tools.doclets.internal.toolkit.taglets.TagletManager.
getConstructorCustomTags()[Lcom/sun/tools/doclets/internal/toolkit/taglets/Taglet;
at ydoc.doclets.F$_A.<init>(Unknown Source)
at ydoc.doclets.F.B(Unknown Source)
at ydoc.doclets.F.E(Unknown Source)
at ydoc.doclets.J.setSpecificDocletOptions(Unknown Source)
at com.sun.tools.doclets.internal.toolkit.Configuration.setOptions(Configuration.java:560)
at ydoc.doclets.J.setOptions(Unknown Source)
at ydoc.doclets.C.A(Unknown Source)
at ydoc.doclets.YStandard.start(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
at com.sun.tools.javadoc.Start.begin(Start.java:219)
at com.sun.tools.javadoc.Start.begin(Start.java:205)
at com.sun.tools.javadoc.Main.execute(Main.java:64)
at com.sun.tools.javadoc.Main.main(Main.java:54)
我跑以下執行的命令:
javadoc @doc/examples/options.sample.linux <Java file path>
,我也越來越相同的錯誤從Eclipse IDE嘗試時。
我收到完全相同的錯誤跟蹤以下在Eclipse中運行它自己的指令。我也是在OS X 。 https://www.yworks.com/products/yDoc/doc/usersguide.html –
我也試過https://power2build.wordpress.com/2015/02/24/uml-doclet-in-eclipse/添加JRE源代碼兼容性1.5和其他虛擬機選項 –