I have a rather old instance of CUPS (1.6.3) I'm working with and I'm not able to obtain the list of printers for my cups server.
CupsClient cupsClient = new CupsClient("cupsServer", 631);
cupsClient.getPrinters(); // returns empty List
When I try the URL through my browser, http://cupsServer:631/printers , the list of 6 printers is shown in a nice html page, as an anonymous user.
When creating the cupsClient, I tried adding the administrator credentials in a CupsAuthentication object with no success.
Is cups4j compatible with this version of cups ?
Do I need to pay attention to other parameters ?
What can I test to ensure I correctly initialized the cups client ?
Hello,
I have a rather old instance of CUPS (1.6.3) I'm working with and I'm not able to obtain the list of printers for my cups server.
When I try the URL through my browser, http://cupsServer:631/printers , the list of 6 printers is shown in a nice html page, as an anonymous user. When creating the cupsClient, I tried adding the administrator credentials in a CupsAuthentication object with no success.
Is cups4j compatible with this version of cups ? Do I need to pay attention to other parameters ? What can I test to ensure I correctly initialized the cups client ?