class already defined

I've been using the command:

javadoc -package -d "c:\deployment2\docs\remoteapps\remoteapps private api"

-header "<b>remoteapps

v2.1.5 </b>"

-sourcepath c:\Deployment2\source

@c:\deployment2\privateList.txt

but keep getting a whole lot of errors like:

Loading source files for package com/remoteapps/...

com\remoteapps\vc\visibility\package.html:

Class or interface declaration expect

ed.

[parsed c:\Deployment2\source\com\remoteapps\RAException.java in 0 ms]

c:\Deployment2\source\com\remoteapps\RAException.java:20:

Class com.remoteapps.RAException already defined in com\remoteapps\RAException.java.

public class RAException extends Exception {

[863 byte] By [garyj2] at [2007-9-26 14:47:15]
# 1

The message "already defined in" indicates that you have set the CLASSPATH environment variable to include

the *.class files for com.remoteapps.

Javadoc 1.4.0 is different from previous releases in that it (mistakenly) will document

classes not only on -sourcepath but also on classpath (set with either the -classpath

option or the CLASSPATH environment variable).

If you must set CLASSPATH to point to those class files (for referenced classes),

then the only other workaround I can think of is to pass the long list of source files into

javadoc and omit the -sourcepath option.

-Doug

dkramer at 2007-7-2 16:54:23 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...