views:

70

answers:

2

I want to generate the javadocs for an open-source code-base I'm using. But I'm being asked for a "Javadoc Command" by the Eclipse Generate JavaDoc wizard and the help doesn't explain what this means. Is it wanting the path to the javadoc binary/jar or something else?

+1  A: 

Yes, it is asking for the application/executable that is capable of creating Javadoc. There is a javadoc executable inside the jdk's bin folder.

Andreas_D
e.g. on windows JAVA_HOME/bin/javadoc.exe
Redlab
^^ if you installed the jdk, the jre version does not have that tool
Redlab
+1  A: 

Yes, presumably it wants the path to the javadoc command line tool that comes with the JDK (in the bin directory, same as java and javac).

Eclipse should be able to find it automatically; are you perhaps running it on a JRE? That would explain the request.

Michael Borgwardt
That's what confused me. I downloaded the newest JDK and under "installed JREs" I have checked jdk1.6.0_20 - isn't that right?
John
Oh, I see. I set the JRE path as ...\jdk\jre, not ...\jdk, thinking that's what was required. Doh!
John