Can't run javadoc

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
MarkPR
Posts: 4
Joined: Tue Mar 28, 2006 5:33 pm

Can't run javadoc

Post 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?
Last edited by MarkPR on Tue Mar 28, 2006 10:19 pm, edited 1 time in total.
MarkPR
Posts: 4
Joined: Tue Mar 28, 2006 5:33 pm

An alternative

Post 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?
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post 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
?
MarkPR
Posts: 4
Joined: Tue Mar 28, 2006 5:33 pm

Post 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
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post 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: )
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

A path containing spaces does not need to be quoted in the Command field. But one in the Parameters field does.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post 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.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post 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.
MarkPR
Posts: 4
Joined: Tue Mar 28, 2006 5:33 pm

Post by MarkPR »

I have Windows XP SP2
Post Reply