Page 1 of 1

Can't run javadoc

Posted: Tue Mar 28, 2006 5:56 pm
by MarkPR
I have a problem creating javadoc.

My java program (Samplejavadoc.java) is in folder with path C:\Java Programs\AppendixE\ Samplejavadoc.java

The jdk1.5.0_02\bin is in C:\Java Programs.

What I need to put in the Command, Parameters, Initial folder text boxes (I cheked the DOS Command check box) when try to run a javadoc.

I make some tries. Ex:

For Command try whith; javadoc C:\Java Programs\AppendixE\Samplejavadoc.java

For Parameters; -link http://java.sun.com/j2se/1.5.0/docs/api -author -d c:\Java Programs\ArppendixE\

And for Initial folder; C:\Java Programs\jdk1.5.0_02\bin

For what is Command, Parameters, and Initial folder text boxes of the run command in TextPad? or What I need to put in the text boxes in TextPad run command to run the javadoc?

An alternative

Posted: Tue Mar 28, 2006 8:08 pm
by MarkPR
I made the solution creating a Java folder (C:\Java). Then copy the Samplejavadoc.java code from C:\Java Programs\AppendixE\Samplejavadoc.java and paste in the created C:\Java folder.

Then, in TextPad, I clicked a Run command from the Tools Menu. In the text boxes of the Run dialog box I put javadoc C:\Java\Samplejavadoc.java in the Command text box.

Next I put -link http://java.sun.com/j2se/1.5.0/docs/api -author -d C:\Java\ in Parameters text box and C:\Java Programs\jdk1.5.0_02\bin in Initial folder text box. Check the DOS command and click OK.

Other suggestion?

Posted: Tue Mar 28, 2006 8:54 pm
by ben_josephs
Have you tried
Command: C:\Java Programs\jdk1.5.0_02\bin\javadoc.exe
Parameters: -link http://java.sun.com/j2se/1.5.0/docs/api -author -d "c:\Java AppendixE\" $File
Initial folder: $FileDir

[X] Capture output
?

Posted: Tue Mar 28, 2006 10:27 pm
by MarkPR
I correct some errors in my first post.
ben_josephs wrote:Have you tried
Command: C:\Java Programs\jdk1.5.0_02\bin\javadoc.exe
Parameters: -link http://java.sun.com/j2se/1.5.0/docs/api -author -d "c:\Java AppendixE" $File
Initial folder: $FileDir

[X] Capture output
?
This is what happened:

'C:\Java' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .

Any way, thank you Ben

Posted: Wed Mar 29, 2006 6:09 am
by MudGuard
Put paths in "" if they contains blanks.

(whoever allowed blanks in file and folder names should be shot, hung, quartered, electrocuted, poisoned, stabbed, suffocated and drowned :wink: - in any order :wink: :wink: :wink: )

Posted: Wed Mar 29, 2006 7:48 am
by ben_josephs
A path containing spaces does not need to be quoted in the Command field. But one in the Parameters field does.

Posted: Wed Mar 29, 2006 7:12 pm
by MudGuard
ben_josephs wrote:A path containing spaces does not need to be quoted in the Command field. But one in the Parameters field does.
The error message 'C:\Java' is not recognized as an internal or external command indicates otherwise.
IIRC there are differences in Windows versions - Win98 needs the quotes, Win2K/WinXP not (but I don't have Win98 available now to check)

And also, even on win2k, where the quotes are not necessary, they do no harm.

Posted: Wed Mar 29, 2006 7:47 pm
by ben_josephs
Ah. I didn't realise that the behaviour differed in different versions of Windows. I should have guessed that, I suppose. :-)

Thanks for the information.

Posted: Fri Mar 31, 2006 11:58 am
by MarkPR
I have Windows XP SP2