Javadoc error
I've looked through the web and seen sever ways of running the javadoc. Can any one tell me which one is correct when i run them an error message comes up saying that 'C:\' is not a recognized as an internal or external command, operable program or batch file'. And i dont know why. I have my java file'diceGame' saved in the top level of my hard drive and the javdoc folder i want it saved to in top level of my hard drive ' html'. Please help.
Option one "C:\>javadoc -package -d c:\diceGame.java"
Option two " javadoc -d C:\html diceGame.java"
Option three"javadoc c:\html \home\html -c:\diceGame \home\src -subpackages java"
[664 byte] By [
xbox200a] at [2007-10-2 8:14:55]

Option 2 is correct if diceGame.java is in the current directory. Options 1 and 3 are nonsense.You probably should not use the -package option -- that is for showing package-private and more visible members (rather than the default, which is -protected)
when i run it, the message "'javadoc' is not recognized as an internal or external command, operable program ot batch file." Can any one tell me what this means
> when i run it, the message "'javadoc' is not
> recognized as an internal or external command,
> operable program ot batch file."
> Can any one tell me what this means
It means that javadoc isn't in your path.
Does javac work? Then it suggests...
1. If yes and you are using a unix OS and javac is a link rather than the actual file. Either someone needs to add the link or you need to use the actual location in your path.
2. If no and on any OS then one of the following is true.
- a. The SDK bin dir is not in your path. Add it.
- b. The SDK is not installed. Install it. (The VM is not sufficient.)
> How would i add the SDK bin dir
First you find it. I have no idea where you installed it. But where ever you installed it you will find a javac and javadoc executable. That is the bin dir. That is the path you use.
Then you modify your environent PATH variable. How you do that in windows varies but it is basically the same for all the versions....
Start -> Settings -> Control Panel -> System -> Advanced -> Environment Variables -> (find 'PATH' and modify it)