Read thinking in Java Harvest (ii)--eclipse generate Javadoc Document

Source: Internet
Author: User

I learned to build Javadoc when I first learned the Java language, but it was only built with the Windows command line. Read the Javadoc here to know the new found in fact, we do the project to use some comments, but did not use eclipse to generate this document, through the review, eventually complete the knowledge. First, the code in the book: <pre name= "code" class= "java" >//:object/hellodate.javapackage unit2;import java.util.date;/** * the First thinking in the Java example program. * Display a string and today ' s date. * @author Songwenju * @version 4.0 */public class Hellodate {/** * Entry point to Class & application. * @param args AR Ray of string arguments * @throws Exception No exceptions thrown */public static void main (string[] args) {System.out.prin TLN ("Hello,it ' s:"); System.out.println (New Date ());}} /*output: (55% match) hello,it ' S:fri Jan 20:03:36 CST 2015 *///:~
Second, Eclipse generates Javadoc documents in the following three ways:
1, right-click in the project list, select Export, and then in the Export dialog box, select Javadoc under Java to submit to the next step.    There are two places to note in the Javadoc Generation dialog box: Javadoc command: The bin/javadoc.exe,destination of the JDK should be selected: it is freely selectable to generate the document's save path.    Press Finish to submit to start generating the document. 2, choose from the menu: File->export (export from file), the remaining steps are the same as the first method. 3, select the project to generate the document, and then use the menu selection,    project->generate Javadoc directly into the Javadoc Generation dialog box, the remaining steps and the first method in the Javadoc The Generation dialog box starts the same.
Iii. the directory of the generated documents and the resulting documents are as follows:




Read thinking in Java Harvest (ii)--eclipse generate Javadoc Document

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.