PrintServiceLookup returns null in any case.. (linux box using cups)

Hello!

I'm new to printing with java so maybe I do something wrong. Currently I'm reading the "Java Print Service API User Guide" [1] but the PrintServiceLookup Class still return null in any case. I tried:

PrintServiceLookup.lookupDefaultPrintService() -> null

PrintServiceLookup.lookupPrintServices(null, null) -> returns an empty array

PrintServiceLookup.lookupPrintServices(null, new HashPrintRequestAttributeSet()) -> returns an empty array

I'm using gentoo-Linux with cups version 1.2.7 installed. I've also some printers installed:

$ cat /etc/printcap

# This file was automatically generated by cupsd(8) from the

# /etc/cups/printers.conf file. All changes to this file

# will be lost.

HPLJ4000|HP LaserJet 4000:rm=mfe.esw.cps-net.de:rp=HPLJ4000:

Konica_IP424|Konica 7020/IP-421 PS:rm=mfe.esw.cps-net.de:rp=Konica_IP424:

RicohCL3100|RICOH RICOH Aficio CL3100 PS:rm=mfe.esw.cps-net.de:rp=RicohCL3100:

Anyone with some ideas whats going wrong here?

Regards,

Martin

[1] http://java.sun.com/javase/6/docs/technotes/guides/jps/index.html

[1146 byte] By [MFernaua] at [2007-11-27 11:05:23]
# 1

okay - I found the problem..

It seems that an older vertsion of java 6 had problems with cups and returns null. I upgraded to the latest java 6 and now I got my printers

MFernaua at 2007-7-29 13:08:21 > top of Java-index,Java Essentials,Java Programming...