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

Documentation update or tool (javac) misfeature

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.1.5
    • 1.1.4
    • docs
    • 1.1.5
    • x86, sparc
    • solaris_2.5.1, windows_95
    • Not verified



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: