2 Replies Latest reply: Jul 21, 2009 1:51 AM by 843810 RSS

    How can we generate the java doc for default package

    843810
      hello....

      i using Netbeans 6.5 with JDK 1.5 and JRE 1.6. I generated comment and selected generate javadoc option from Netbeans.

      It genearted javadoc for all packages except the default package.Please help me to generate javadoc for default package.
        • 1. Re: How can we generate the java doc for default package
          843810
          you shouldn't place anything in the default package,you'll see netbeans telling you that this behavior is discouraged


          make another package and put your code there
          • 2. Re: How can we generate the java doc for default package
            843810
            You need to pass in source filenames (rather than package names) with the javadoc command on the command line. (I don't know if this can be done in NetBeans)

            "I have refined this fix to handle classes in unnamed packages. A link with the label <unnamed package> now appears at the top of the packge list when classes in unnamed packages are specified on the command line."

            stddoclet: Include package info when passing in source filenames (*.java)
            10-Fix Delivered,
            http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4359386

            Also see:
            stddoclet: Want default (i.e. unnamed) package to appear in package list
            11-Closed, duplicate of 4359386
            http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4213968