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

jdk7 b45 threw printException:The specified program requires a newer version of Windows

XMLWordPrintable

    • 2d
    • x86
    • windows_xp

      Java Version: jdk1.7.0-b44, b45
      Platform: winXPpro SP3, the printer is Xerox N21

      Problems:
      We have some printing tests, they got exceptions:
      javax.print.PrintException: java.awt.print.PrinterException: The specified program requires a newer version of Windows.

      Please see the exceptions as followings and printing test cases in attached.

      Note: DestinationAttribTest.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      javax.print.PrintException: java.awt.print.PrinterException: The specified program requires a newer version of Windows.

      at sun.print.Win32PrintJob.printableJob(Win32PrintJob.java:545)
      at sun.print.Win32PrintJob.print(Win32PrintJob.java:366)
      at DestinationAttribTest.printImage(DestinationAttribTest.java:232)
      at DestinationAttribTest.start(DestinationAttribTest.java:165)
      at javasoft.clientsqe.tonga.TongaAppletTest.invokeTest(TongaAppletTest.java:72)
      at javasoft.clientsqe.tonga.TTBuilder.main(TTBuilder.java:116)
      Caused by: java.awt.print.PrinterException: The specified program requires a newer version of Windows.

      at sun.awt.windows.WPrinterJob._startDoc(Native Method)
      at sun.awt.windows.WPrinterJob.startDoc(WPrinterJob.java:1313)
      at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1397)
      at sun.print.Win32PrintJob.printableJob(Win32PrintJob.java:541)
      ... 5 more
      java.lang.RuntimeException: Fail: Setting the Destination attribute to a FileURL has no effect and print data is not printed to the URL specified. File is empty.
      at DestinationAttribTest.destroy(DestinationAttribTest.java:270)
      at javasoft.clientsqe.tonga.TongaAppletTest.destroy(TongaAppletTest.java:98)
      at javasoft.clientsqe.tonga.TTBuilder.main(TTBuilder.java:131)

            Unassigned Unassigned
            ttzhang Tao Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: