Suppose I have project directory MyProject
, under which I have src
directory with sources of the program.
I want to compile all javadocs from there. What is the simplest command to issue?
If I run
javadoc -sourcepath ./src -d ./docs
I get an error
javadoc: error - No packages or classes specified.
Can't it deduce packages from source files?
EDIT 1
This way also causes an error
...MyProject>javadoc -sourcepath ./src *.java -d ./docs
Creating destination directory: "./docs\"
javadoc: error - File not found: "*.java"
1 error