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

Printing uses hardcoded paths to lpc and lpr

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.0, 1.4.2, 6
    • client-libs
    • 2d
    • generic, x86
    • generic, linux

      Name: jg103975 Date: 02/04/2004


      FULL PRODUCT VERSION :
      java version "1.4.2_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux 2.4.20-13.9

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      in out network there is a custom printing solution installed and lpc/lpr are installed
      in /usr/local/bin.
      I don't have administrator access to create links in /usr/bin

      A DESCRIPTION OF THE PROBLEM :
      PrinterJob.printDialog() shows an error "No services found".
      This is because the absolute paths to lpc/lpr are hard-coded.
      If there is a reason not to look for these commands anywhere in the PATH,
      the print dialog should at least allow to save the print job to a file.



      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 236916)
      ======================================================================

            jgodinez Jennifer Godinez (Inactive)
            jgodinez Jennifer Godinez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: