Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How do I use javadoc?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Fonzie




PostPosted: Sat Jan 27, 2007 9:13 pm   Post subject: How do I use javadoc?

I'm having difficulty using this. I type "$javadoc Testing.java" in the command prompt and I get an error that it doesn't recognize the command. Do I have to download something? I thought it was automatically downloaded when I got java.
Sponsor
Sponsor
Sponsor
sponsor
HellblazerX




PostPosted: Sat Jan 27, 2007 9:57 pm   Post subject: Re: How do I use javadoc?

You need to state the location when the javadoc file is before you can call upon it. In my case, it would be this:
C:/j2sdk1.4.2_08/bin/$javadoc Testing.java
Fonzie




PostPosted: Tue Jan 30, 2007 1:17 am   Post subject: Re: How do I use javadoc?

thankyou, though now I'm having difficulty using this, and can't seem to find instructions. I have my method, and right above it, are these 3 comments:
/**Enables you to do something*/
/**@param placeholder holds a place*/
/**@return a number*/

however, only the return is documented. It seems that only the last comment is put into the api. Is there some syntax I don't know?
ericfourfour




PostPosted: Wed Feb 07, 2007 6:11 pm   Post subject: RE:How do I use javadoc?

The correct way to comment that is:

Java:
/**
 * Enables you to do something.
 * @param placeholders holds a place.
 * @return a number
 */
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: