是这个类的文档根本没产生,在All Classes数状目录里所有类的都有,就是差这个类的

解决方案 »

  1.   

    如果编译没错,你看一下以下两个方面:
    1、用private修饰的方法与数据成员的DOC不会显示,
    2、在方法内加的DOC不会显示。
      

  2.   

    我的命令:javadoc -d doc suncertify suncertify.gui suncertify.db suncertify.server suncertify.property
    编译信息如下:
    Loading source files for package suncertify...
    Loading source files for package suncertify.gui...
    Loading source files for package suncertify.db...
    Loading source files for package suncertify.server...
    Loading source files for package suncertify.property...
    Constructing Javadoc information...
    Standard Doclet version 1.4.0Generating doc\constant-values.html...
    Building tree for all the packages and classes...
    Building index for all the packages and classes...
    Generating doc\overview-tree.html...
    Generating doc\index-all.html...
    Generating doc\deprecated-list.html...
    Building index for all classes...
    Generating doc\allclasses-frame.html...
    Generating doc\allclasses-noframe.html...
    Generating doc\index.html...
    Generating doc\packages.html...
    Generating doc\overview-summary.html...
    Generating doc\overview-frame.html...
    Generating doc\suncertify\package-frame.html...
    Generating doc\suncertify\package-summary.html...
    Generating doc\suncertify\package-tree.html...
    Generating doc\suncertify\db\package-frame.html...
    Generating doc\suncertify\db\package-summary.html...
    Generating doc\suncertify\db\package-tree.html...
    Generating doc\suncertify\gui\package-frame.html...
    Generating doc\suncertify\gui\package-summary.html...
    Generating doc\suncertify\gui\package-tree.html...
    Generating doc\suncertify\property\package-frame.html...
    Generating doc\suncertify\property\package-summary.html...
    Generating doc\suncertify\property\package-tree.html...
    Generating doc\suncertify\server\package-frame.html...
    Generating doc\suncertify\server\package-summary.html...
    Generating doc\suncertify\server\package-tree.html...
    Generating doc\suncertify\Controller.html...
    Generating doc\suncertify\Model.html...
    Generating doc\suncertify\View.html...
    Generating doc\suncertify\ControllerImpl.html...
    Generating doc\suncertify\ModelImp.html...
    Generating doc\suncertify\RemoteModel.html...
    Generating doc\suncertify\RunMe.html...
    Generating doc\suncertify\gui\ClientViewImp.html...
    Generating doc\suncertify\gui\HotelTableModel.html...
    Generating doc\suncertify\gui\SelectPanel.html...
    Generating doc\suncertify\db\DB.html...
    Generating doc\suncertify\db\CriteriaString.html...
    Generating doc\suncertify\db\Data.html...
    Generating doc\suncertify\db\DuplicateKeyException.html...
    Generating doc\suncertify\db\RecordNotFoundException.html...
    Generating doc\suncertify\server\DataFactory.html...
    Generating doc\suncertify\server\DataFactoryImpl.html...
    Generating doc\suncertify\server\LockManage.html...
    Generating doc\suncertify\server\RemoteData.html...
    Generating doc\suncertify\server\ServerView.html...
    Generating doc\suncertify\property\Property.html...
    Generating doc\serialized-form.html...
    Generating doc\package-list...
    Generating doc\help-doc.html...
    Generating doc\stylesheet.css...
    所有类的文档都产生了,就是suncertify.gui包里的一个MainPanel.java类没产生文档。
      

  3.   

    把MainPanel.java的内容贴出来看看如何?
      

  4.   

    反正我已经弄好了,贴一点东西出来吊吊你胃口,黑黑~气死你~
    -----------------------------------------
    Overview  Package   Class  Tree  Deprecated  Index  Help  
      
     PREV CLASS   NEXT CLASS FRAMES    NO FRAMES      
    SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD suncertify.gui 
    Class MainPanel
    java.lang.Object
      java.awt.Component
          java.awt.Container
              java.awt.Window
                  java.awt.Frame
                      javax.swing.JFrame
                          suncertify.gui.MainPanel
    All Implemented Interfaces: 
    javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants 
    -----------------------------------------
      

  5.   

    看javadoc命令的帮助信息:
    -----------------------------------------
    F:\temp\java\jar_test\suncertify2>javadoc -help
    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 and exit
    -doclet <class>           Generate output via alternate doclet
    -docletpath <path>        Specify where to find doclet class files
    -sourcepath <pathlist>    Specify where to find source files
    -classpath <pathlist>     Specify where to find user class files
    -exclude <pkglist>        Specify a list of packages to exclude
    -subpackages <subpkglist> Specify subpackages to recursively load
    -breakiterator            Compute 1st sentence with BreakIterator
    -bootclasspath <pathlist> Override location of class files loaded
                              by the bootstrap class loader
    -source <release>         Provide source compatibility with specified release
    -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
    -docfilessubdirs                  Recursively copy doc-file subdirectories
    -splitindex                       Split index into one file per letter
    -windowtitle <text>               Browser window title for the documenation
    -doctitle <html-code>             Include title for the overview 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>
    -excludedocfilessubdir <name1>:.. Exclude any doc-files subdirectories with 
                                      given name.
    -group <name> <p1>:<p2>..         Group specified packages together in 
                                      overview page
    -nocomment                        Supress description and tags, generate only 
                                      declarations.
    -nodeprecated                     Do not include @deprecated information
    -noqualifier <name1>:<name2>:...  Exclude the list of qualifiers from the output.
    -nosince                          Do not include @since 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
    -quiet                            Do not display status messages to screen
    -serialwarn                       Generate warning about @serial tag
    -tag <name>:<locations>:<header>  Specify single argument custom tags
    -taglet                           The fully qualified name of Taglet to register-tagletpath                       The path to Taglets
    -charset <charset>                Charset for cross-platform viewing of generated 
                                      documentation.
    -helpfile <file>                  Include file that help link links to
    -linksource                       Generate source in HTML
    -stylesheetfile <path>            File to change style of the generated
                                      documentation
    -docencoding <name>               Output encoding name
    -----------------------------------------基本上我们可以这样认为:  javadoc [options] [packagenames] [sourcefiles]选项:  -public 仅显示 public 类和成员  
      -protected 显示 protected/public 类和成员 (缺省) 
      -package 显示 package/protected/public 类和成员 
      -private 显示所有类和成员 
      -d <directory> 输出文件的目标目录 
      -version 包含 @version 段 
      -author 包含 @author 段 
      -splitindex 将索引分为每个字母对应一个文件 
      -windowtitle <text> 文档的浏览器窗口标题 也就是说,javadoc在默认(缺省,也就是这一句:Show protected/public classes and members (default))的情况下只生成所有声明为protected/public的class的文档,你的MainPanel Class并没有对访问级别作任何声明,也就是默认的访问级别,既不是public,也不是protected,那么javadoc自然就没有生成它的文档了。现在有两种方法,一是把你的命令(javadoc -d doc suncertify.gui)改为(javadoc -private -d doc suncertify.gui),二是把你的MainPanel 声明为public,那么命令不改也可以生成文档,两种方法我都试过,没问题。完整的命令我已经打包好了,明天给你。在你下线后一分钟内问题就解决了,正好让你带着遗憾入梦,哈哈~活该~谁让你不敢熬夜~