Using a taglet with Javadoc in Netbeans

半世苍凉 提交于 2019-12-08 11:24:39

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/5236513/using-a-taglet-with-javadoc-in-netbeans

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!