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]
# 1
javadoc -package diceGame.java
YAT_Archivista at 2007-7-16 22:12:25 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
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)
dhkramera at 2007-7-16 22:12:25 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3
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
xbox200a at 2007-7-16 22:12:25 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 4

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

jschella at 2007-7-16 22:12:25 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 5
How would i add the SDK bin dir
xbox200a at 2007-7-16 22:12:25 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 6

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

jschella at 2007-7-16 22:12:25 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 7
Thanks alot found the file and changed the path. I thought it would something small like that. When i run the Javadoc it produces a empty html file despite there being complents in the file.Can u tell me why
xbox200a at 2007-7-16 22:12:25 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...