Error - Cannot Find Doclet Class
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Trouble with generating custom javadoc; 'cannot find doclet' up vote 2 down vote favorite I'm having a go at creating a custom Javadoc generator using Doclet, but I'm running into some issues. I'm following the official documentation and initially had trouble with including the tools.jar file in my project, but I managed to fix this. My issue now is that after running this command... javadoc -doclet ListClass -docletpath . MyClass.java ...I am getting the message... javadoc: error - Cannot find doclet class ListClass As I said, I've mostly been following the tutorials from the official documentation, but here is my code for reference. ListClass.java: import com.sun.javadoc.*; public class ListClass { public static boolean start(RootDoc root) { ClassDoc[] classes = root.classes(); for (int i = 0; i < classes.length; ++i) { System.out.println(classes[i]); } return true; } } And MyClass.java: /** * Documentation for my class */ public class MyClass { public static void main(String[] args) { } /** * Documentation for my static void method * * @param param This is the parameter it takes in */ public static void myStaticVoidMethod(String param) { } } So what I am asking is why I am getting the error I posted above. If someone was able to provide a more comprehensiv
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Gradle javadoc doclets. Can not find doclet up vote 4 down vote favorite I am new to Gradle, http://stackoverflow.com/questions/36778078/trouble-with-generating-custom-javadoc-cannot-find-doclet and I am trying to use my very-own-and-beauty doclet with gradle. I have made the next task: task myDoclet(type: Javadoc, dependsOn: myJavadocs) { source = sourceSets.main.allJava options.doclet = "com.myproject.webservice.doclets.Doclet2" classpath = configurations.compile } With that, I become always the next error: javadoc: error - Cannot find doclet class com.myproject.webservice.doclets.Doclet2 I know that there is a options.docletpath , that should be the path to my doclet (but... src or class?), but I am http://stackoverflow.com/questions/10918169/gradle-javadoc-doclets-can-not-find-doclet not able to understand what should I put there, due to the lack of explanations in the docu Can anyone explain me how can I set correctly the doclet's path, so it finds my pretty doclet? Thanks for your time!! javadoc gradle doclet share|improve this question asked Jun 6 '12 at 16:21 raspayu 1,85641938 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted The docletpath specifies the path to the doclet starting class file. This can be a path to a jar (that contains the class file) or point to a directory where the class file is located. Have a look at the javadoc documentation about the doclet classpath at http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/javadoc.html#docletpath hope that helps, regards, René share|improve this answer answered Jun 9 '12 at 9:09 Rene Groeschke 12.9k23549 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged javadoc gradle doclet or ask your own question. asked 4 years ago viewed 1998 ti
Sign in Pricing Blog Support Search GitHub This repository Watch 6 https://github.com/DavidWhitlock/PortlandStateJava/issues/3 Star 9 Fork 3 DavidWhitlock/PortlandStateJava Code Issues 24 Pull requests 0 Projects 0 Pulse Graphs New issue Can't find doclet classes in Java 7 https://bugs.openjdk.java.net/browse/JDK-4144495 #3 Closed DavidWhitlock opened this Issue Apr 26, 2013 · 1 comment Projects None yet Labels None yet Milestone Summer error - 2013 Assignees No one assigned 1 participant Owner DavidWhitlock commented Apr 26, 2013 I seem to remember reading that the Doclet API has changed. The build fails on Java 7 with this [ERROR] /scratch/jenkins/workspace/DavidWhitlock/PortlandStateJava/grader/src/main/java/edu/pdx/cs410J/grader/APIDocumentationDoclet.java:[3,0] error: package com.sun.javadoc does not exist [ERROR] /scratch/jenkins/workspace/DavidWhitlock/PortlandStateJava/grader/src/main/java/edu/pdx/cs410J/grader/APIDocumentationDoclet.java:[24,37] error: cannot find symbol error - cannot [ERROR] symbol: class DocErrorReporter location: class APIDocumentationDoclet /scratch/jenkins/workspace/DavidWhitlock/PortlandStateJava/grader/src/main/java/edu/pdx/cs410J/grader/APIDocumentationDoclet.java:[40,30] error: cannot find symbol [ERROR] symbol: class RootDoc location: class APIDocumentationDoclet /scratch/jenkins/workspace/DavidWhitlock/PortlandStateJava/grader/src/main/java/edu/pdx/cs410J/grader/APIDocumentationDoclet.java:[107,31] error: cannot find symbol [ERROR] symbol: class ClassDoc location: class APIDocumentationDoclet /scratch/jenkins/workspace/DavidWhitlock/PortlandStateJava/grader/src/main/java/edu/pdx/cs410J/grader/APIDocumentationDoclet.java:[127,31] error: cannot find symbol Is the Doclet API removed/changed in Java 7? Owner DavidWhitlock commented Apr 28, 2013 It looks like the doclet API is still the same and in the same place, but I think the problem is how I include tools.jar on the compile class path.