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

[AIX] Desktop printing feature does not work if printer is configured with driver

XMLWordPrintable

    • ppc
    • aix

      According to src/java.desktop/share/classes/sun/print/PSPrinterJob.java.
      In case of desktop printing feature calls following command.
      * With banner page
      /usr/bin/lp -c -dinfoprt -tJava Printing -o job-sheets=standard /tmp/javaprint324098563
      7403973305.ps
      * Without banner page
      /usr/bin/lp -c -dinfoprt -tJava Printing -o nobanner /tmp/javaprint17598598054218192566.ps
      (Note: "infoprt" is printer name)

      AIX has two printing subsystem (AIX and SystemV)
      According to man page of "lp" command [1].
      If printing subsystem is configured for AIX and printer is configured by LPD,
      printer backend program is ignored.
      If printing system is configured for AIX, printer is configured with printer driver.
      Printer driver could not handle "-o job-sheets=standard" or "-o nobanner " option properly.

      To avoid this situation,
      "lpr" command [2] should be used instead of "lp" on AIX.

      [1] https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/l_commands/lp.html
      [2] https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/l_commands/lpr.html

            itakiguchi Ichiroh Takiguchi (Inactive)
            itakiguchi Ichiroh Takiguchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: