• Post Reply Bookmark Topic Watch Topic
  • New Topic

NoClassDefFound when using custom Doclet  RSS feed

 
Ra Carter
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to create my own custom doclet object by using the Doclet API and dom4j to print out my own specialized HTML output.

I execute the javadoc command with Ant and I am finding that my doclet code crashes when I try to call org.dom4j.DocumentHelper.createDocument(). The issue seems to be related to reflection and classpaths, but I'm not really sure what the problem is. Almost any factory method or any call to Class.forName seems to fail. Is there something special that needs to be done with the classpath in Ant? Can you do reflection in Doclets?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!