USAGE HELP....

the problem is:

my source file:

.

the .class file:

../src/comunicazioni/*.class

.../src/events/*.class

.../src/eccezioni/*.class

.../src/interfacciaSIL/*.class

.../src/main_applicativo/*.class

when I do:

javadoc -verbose -sourcepath ./src/ -d ./doc/ -classpath .:com:$CLASSPATH comunicazioni eccezioni events interfacciaSIL main_applicativoL

the result is:

Loading source files for package comunicazioni...

[parsed ./src/comunicazioni/Argomenti.java in 2059 ms]

[parsed ./src/comunicazioni/RicevitoreComSistema.java in 44 ms]

...........

Loading source files for package eccezioni...

[parsed ./src/eccezioni/GestoreEccezioniASL.java in 15 ms]

[parsed ./src/eccezioni/EccezioneEventiErroreDTDInvalido.java in 24 ms]

............

Loading source files for package events...

[parsed ./src/events/Immigrazione.java in 81 ms]

[parsed ./src/events/EventoSocioSanitario.java in 50 ms]

...............

Loading source files for package interfacciaSIL...

[parsed ./src/interfacciaSIL/InterfacciaAnagrafe.java in 7 ms]

[parsed ./src/interfacciaSIL/InterfacciaAnagrafeASL.java in 156 ms]

............

Loading source files for package main_applicativo...

[parsed ./src/main_applicativo/Ricevitore.java in 4 ms]

[parsed ./src/main_applicativo/RicEventiASL.java in 267 ms]

......

Constructing Javadoc information...

.............

[loaded /usr/local/java/jdk1.3/jre/lib/rt.jar(java/lang/InterruptedException.class) in 1 ms]

javadoc: warning - Cannot find class com.comunicazioni.Ricevitore

................

[loaded /usr/local/java/jdk1.3/jre/lib/rt.jar(java/util/AbstractCollection.class) in 2 ms]

javadoc: warning - Cannot find class com.main_applicativo.Evento

............

javadoc: No public or protected classes found to document.

[done in 16336 ms]

1 error

2 warnings

but Ricevitore is not in package com.comunicazioni it is in com.main_applicativo

help!!!!!!!!!!

[2208 byte] By [bacchia] at [2007-9-26 2:36:49]
# 1

First, does your source code compile using javac?

It appears javadoc is looking for Ricevitore in the wrong

package. Does Ricevitore.java contain the package

declaration:

package com.main_applicativo;

Second, it appears your source files are in ./src/comunicazioni/*.java

and your class files are in ./com/comunicazoni/*.class

(unlike you state at the top of your message).

Is this true?

-Doug Kramer

Javadoc team

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

excuse for the late answer

the problem whit Ricevitore is solved but remains this problem

javadoc: No public or protected classes found to document.

my source file is in src/comunicazioni, src/events, src/main_applicativo.... and the class file is in com/comunicazioni, com/events, com/main_applicativo.....

help me!!!!!

bacchia at 2007-6-29 10:05:10 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

It appears your source files are in the wrong location given your

package names -- they need to be in a directory hierarchy

corresponding to the package name -- for example, the source

files for package com.comunicazioni *must* be in directory

com/comunicazioni. If you add the "com" subdirectory,

it should all work.

Please let us know if that does it.

-Doug

Javadoc team

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

thanks you! thanks you! !!!!!!!!!!1

it work

it was a problem of directory

the name of package are not equals whit the tree directory

it was a simple problem but I am new to use javadoc

in italy we say:

"sbagliando si impara".......

many thanks

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