在Netbeans中将标记集与Javadoc结合使用 [英] Using a taglet with Javadoc in Netbeans
问题描述
我已经编写了一个自定义标记,对其进行了编译,现在正尝试使用它,但是当我尝试使用javadoc运行它时,仍然会收到ClassNotFoundException:
I've written a custom taglet, compiled it and am now trying to use it but keep getting a ClassNotFoundException when I try to run it with javadoc:
javadoc: error - Error - Exception java.lang.ClassNotFoundException thrown while trying to register Taglet proj2.javadoc.CustomTaglet...
在netbeans文档中,我指定了以下参数:
In netbeans under the documentation I've specified the following arguments:
-taglet proj2.javadoc.CustomTaglet -tagletpath c:\
我已经将类文件放在C:\中(至少现在是这样),并且我对类名进行了三重检查,但是我仍然遇到异常.这里有我想念的东西吗?
I've put the class file in C:\ (for now at least) and I've triple checked the class name but I'm still getting the exception. Is there something I'm missing here?
推荐答案
您应将类文件放在与包名称相匹配的路径中.因此,netbeans/javadoc在c:\ proj2 \ javadoc
You should put class files in a path matching their package name. So netbeans/javadoc is looking for your CustomTaglet.class in c:\proj2\javadoc
这篇关于在Netbeans中将标记集与Javadoc结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!