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

Java does not find a printer on a cups system

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • 2d
    • x86
    • linux

      FULL PRODUCT VERSION :
      java 1.4xxx 1.5xxx 1.6xx all version's I tryed.

      ADDITIONAL OS VERSION INFORMATION :
      Ubuntu 6.10, debian, edgy - in fact any new version of debian.

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Problem exists on java 1.4, 1.5, and 1.6 All can't find the printer..
      but work on old version of debian sage, but not any new version's.

      A DESCRIPTION OF THE PROBLEM :
      Java does not find any printer's on the cups system

      It appears that when there is a link from /usr/lib/libcups.so -> /usr/lib/libcups.so.2, the printing dialog can find any printers, all version of
      Java I have tried 1.4, 1.5, and 1.6 have this problem.

      Not sure what your code is looking for, but I expect it's thinks there is only a old version of cups on the system when it finds libcups.so, and does not look for libcups.so.2 and give's up ?

      So system's which print ok, and I have tried are Debain (3.1)Sage, and Ubuntu (6.06)Dapper, none have the link, System which don't work are Debian
      4.0(etch), and Ubuntu 6.10(Edgy) which have the link.

      Removing the link from /usr/lib/libcups.so -> /usr/lib/libcups.so.2 fix's the problem. On the none working systems. And printing Dialog works as it
      should.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      try printering from ubuntu 6.10.. etc.


      ---------- BEGIN SOURCE ----------
      As for the test code, any thing which brings up
      the list of printer's to select from will show the
      problem I expect.
      ---------- END SOURCE ----------

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      I wish..

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: