开发者

Using a taglet with Javadoc in Netbeans

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

In netbeans under the documentation I've specified the following arguments:

-taglet proj2.javadoc.CustomTaglet -tagletpath c:\

I've put the class开发者_StackOverflow 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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜