help needed in using the DocCheck utility

Hi

Can somebody help me to use the DocCheck utility.I need to check that all the java files have the required javadoc tags and they are correct.

I have downloaded the zip file and I have been giving the following commands

c:\javadoc -doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath c:\svk\jdk1.2.2\bin\doccheck1.2b1\lib\doccheck.jar -sourcepath<full path with the file name>

But I get the following error message : No package or class specified.

I also tried giving the following command:

D:\SegaSource\sega\src\com\sega\account>javadoc -doclet com.sun.tools.doclets.do

ccheck.DocCheck -docletpath d:\jdk1.3\doccheck1.2b1\lib\doccheck.jar User.java

But I get the following message:

Loading source file User.java...

Constructing Javadoc information...

javadoc: warning - Import not found: com.sega.account.address.Address - ignoring

!

javadoc: warning - Import not found: com.sega.account.icon.Icon - ignoring!

javadoc: warning - Import not found: com.sega.common.DateUtil - ignoring!

javadoc: warning - Import not found: atg.nucleus.GenericService - ignoring!

javadoc: warning - Cannot find class com.sega.account.icon.Icon

javadoc: warning - Cannot find class com.sega.account.address.Address

javadoc: warning - Cannot find class com.sega.account.MasterManager

7 warnings

please help

Thanks

SVK

[1483 byte] By [kyogesh21] at [2007-9-26 2:40:14]
# 1

I have never ran the DocCheck from the command prompt, so I really don't know how to do it, but I do run it succesfully using ant (build tool from apache - jakarta, if you use tomcat you already have it installed).

So.. if you do use ant.. this will help:

<target name="doccheck" depends="prepare">

<javadoc

packagenames="${packages}"

destdir="${doccheck.home}"

doclet="com.sun.tools.doclets.doccheck.DocCheck"

docletpath="${doccheck.path}" >

<classpath refid="project.classpath"/>

<sourcepath refid="project.classpath"/>

</javadoc>

</target>

If you don't use it.. I guess I was of no help, sorry.

Ylan

ylansegal at 2007-6-29 10:14:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

Does the User.java file depend on com.sega.account.address.Address and other files it could not find?

If so, please supply -classpath pointing to the .class files.

For more information on -classpath, see:

http://java.sun.com/j2se/1.3/docs/tooldocs/win32/javadoc.html#classpath

-Doug Kramer

Javadoc team

dkramer at 2007-6-29 10:14:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...