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?
Can't run javadoc
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Can't run javadoc
Last edited by MarkPR on Tue Mar 28, 2006 10:19 pm, edited 1 time in total.
An alternative
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?
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?
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
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
I correct some errors in my first post.
'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
This is what happened: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
'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
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
The error message 'C:\Java' is not recognized as an internal or external command indicates otherwise.ben_josephs wrote:A path containing spaces does not need to be quoted in the Command field. But one in the Parameters field does.
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.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm