开发者

Using a taglet with Javadoc in Netbeans

开发者 https://www.devze.com 2023-02-15 09:20 出处:网络
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:

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

精彩评论

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

关注公众号