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