大概是这样的,一个简单的例子:/**
 * @(#)javadocTest.java 1.264 00/02/02
 * dsdsdsdsdsad
 * wewewewdsdsd
 * @version 1.0 
 * @see javadocTest2
 * @author x y 
 */package xxx;import java.io.*; public class javadocTest{...}

解决方案 »

  1.   

    我按你的方法试了,还是没有,是不是在用javadoc的时候要加什么参数?
      

  2.   

    javadoc: No packages or classes specified.
    usage: javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]
    -overview <file>          Read overview documentation from HTML file
    -public                   Show only public classes and members
    -protected                Show protected/public classes and members (default)
    -package                  Show package/protected/public classes and members
    -private                  Show all classes and members
    -help                     Display command line options
    -doclet <class>           Generate output via alternate doclet
    -docletpath <path>        Specify where to find doclet class files
    -1.1                      Generate output using JDK 1.1 emulating doclet
    -sourcepath <pathlist>    Specify where to find source files
    -classpath <pathlist>     Specify where to find user class files
    -bootclasspath <pathlist> Override location of class files loaded
                              by the bootstrap class loader
    -extdirs <dirlist>        Override location of installed extensions
    -verbose                  Output messages about what Javadoc is doing
    -locale <name>            Locale to be used, e.g. en_US or en_US_WIN
    -encoding <name>          Source file encoding name
    -J<flag>                  Pass <flag> directly to the runtime systemProvided by Standard doclet:
    -d <directory>            Destination directory for output files
    -use                      Create class and package usage pages
    -version                  Include @version paragraphs
    -author                   Include @author paragraphs
    -splitindex               Split index into one file per letter
    -windowtitle <text>       Browser window title for the documenation
    -doctitle <html-code>     Include title for the package index(first) page
    -header <html-code>       Include header text for each page
    -footer <html-code>       Include footer text for each page
    -bottom <html-code>       Include bottom text for each page
    -link <url>               Create links to javadoc output at <url>
    -linkoffline <url> <url2> Link to docs at <url> using package list at <url2>
    -group <name> <p1>:<p2>.. Group specified packages together in overview page
    -nodeprecated             Do not include @deprecated information
    -nodeprecatedlist         Do not generate deprecated list
    -notree                   Do not generate class hierarchy
    -noindex                  Do not generate index
    -nohelp                   Do not generate help link
    -nonavbar                 Do not generate navigation bar
    -serialwarn               Generate warning about @serial tag
    -charset <charset>        Charset for cross-platform viewing of generated documentation.
      

  3.   

    to:skyyoung(路人甲)
    那这个该怎么写,可以给个例子吗?
      

  4.   

    首先有一点要说明的就是,在java代码中,只有public,protect的变量且以/** */形式进行注释的代码才能用javadoc生成说明文档。
    @version  版本
    @author  作者
    @copyright 版权
    更多的可以到
    http://sesoft.y365.com/的软件工程里面下载java的代码编程规范,里面有详细说明
      

  5.   

    /**
     * Title:        
     * Description:  
     * Copyright:    Copyright (c) 2001
     * Company:      
     * @author 
     * @version 1.0
     */