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