no package found

hello folks,

I give foloowing command

javadoc -d c:\tomcat\xyz -classpath %CLASSPATH% -link http://java.sun.com/products/jdk/1.2/docs/api -link http://server:8080/abc/ com.company.util

But it gives me error saying

-

javadoc: No package, class, or source file found named com.company.util

but my classpath is correct.

can anyone tell me what i am missing

-starfish77

[443 byte] By [starfish77] at [2007-9-26 4:53:33]
# 1

The documentation says that if you omit -sourcepath, that -classpath is used to find the source files, as it appears you are doing. However, I have never relied on that, as that was enabled purely for backward compatibility with Javadoc 1.0 and 1.1.

I believe your example is looking for the source files at

.\com\company\util\*.java

I know it works to set the -sourcepath to the path to the source files, specifically to the root of the package directories. For example, if com.company.util is at:

c:\src\com\company\util\*.java

Then use:

-sourcepath c:\src

The -classpath option should point to referenced .class or .jar files.

-Doug Kramer

Javadoc team

dkramer at 2007-6-29 18:46:24 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Thanks team, it did work for me..
starfish77 at 2007-6-29 18:46:24 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...