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

javac's manpage example for Two Argument Files does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27
    • CPU:
      generic
    • OS:
      generic

      Description

      Following the instructions listed at https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#command-line-argument-files - Examples of Using javac @filename - Two Argument Files yields (on Windows):

          javac @options @classes
          ❌ error: not a directory: classes

      Workaround and possible fix: Rename the second Argument File from "classes" to "sources" in order to prevent a clash of names.

          rename classes sources
          javac @options @sources
          ✅

      Or change the name of the output directory from `-d classes` to `-d out`.

        Attachments

          Activity

            People

            Assignee:
            cstein Christian Stein
            Reporter:
            cstein Christian Stein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: