myeclipse生产javadoc

来源:互联网 发布:淘宝网可以解绑支付宝 编辑:程序博客网 时间:2024/04/24 21:15

1.编写一小段程序,体会文档注释的用法,并通过文档生成工具提取文档注释,形成程序文档。

代码如下:

//: Property.java

import java.util.*;

 

/** The first example program in "Thinking in Java."

 * Lists system information on current machine.

 * @author Bruce Eckel

 * @author http://www.EckelObjects.com/Eckel

 * @version 1.0

 */

public class Property {

    /** Sole entry point to class & application

     * @param args Array of string arguments

     * @exception No exceptions are thrown

     */

    public static void main(String args[]) {

       System.out.println(new Date());

       System.getProperties().list(System.out);

       System.out.println("--- Memory Usage:");

       Runtime rt = Runtime.getRuntime();

       System.out.println("Total Memory = "

                         + rt.totalMemory()

                         + " Free Memory = "

                         + rt.freeMemory());

    }

} ///:~

利用Myeclipse生产javadoc文档的步骤如下:

1.选择File->Export->javadoc,下一步。

2.Javadoc comand选择JDKbin目录下的javadoc.exe。选择要生成的源代码和javadoc保存的目的路径,下一步。

3.Document title输入标题,下一步。

4.overview输入启动指定的overview文件路径,Extra Javadoc options输入

-windowtitle 'Type B Monitor'[浏览器显示标题]

-bottom <center>Travelsky</center>[底部显示文本]

下一步。

原创粉丝点击