Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4095745

Documentation update or tool (javac) misfeature

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.1.5
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.1.5
    • CPU:
      x86, sparc
    • OS:
      solaris_2.5.1, windows_95
    • Verification:
      Not verified

      Description



      Name: dgC58589 Date: 11/27/97


      In the documentation concerning javac on the JDK1.1.4 distribution
      for Tool docs ...

      It is said that it is allowed to do like:
       javac packagename
      However it does not work and it is not written in the top of the
      documentation (just list of *.java files).


      Compiling One or More Packages

           To compile a package, the source files (*.java) for that package must be located in
           a directory having the same name as the package. If a package name is made up of
           several identifiers (separated by dots), each identifier represents a different directory.
           Thus, all java.awt classes must reside in a directory named java\awt\.

           First, change to the parent directory of the top-most package. Then run javac,
           supplying one or more package names.

             % cd c:\jdk\src
             % javac java.awt java.awt.event

           Compiles the public classes in packages java.awt and java.awt.event.
      (Review ID: 20989)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            asommere Alan Sommerer (Inactive)
            Reporter:
            dgrahamcsunw David Graham-cumming (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: