The problem: jedit v 5.3.0 pops-up an error message "No print service found." when I try 'File > Print' or 'File > Page setup' on any text file I'm editing.
Other text editors (e.g. Geany 1.27 and xed 1.6.3) see the shared printers and print ok.
Googling I found a 12-year old Bugzilla issue
https://bugzilla.novell.com/show_bug.cgi?id=213362
which suggests the root cause lies with some Java versions not working with some CUPs versions.
To quote from that bug report:
I tried this work-around, but no dice - the problem persists. I'm using Oracle Java v1.8.0-181, specifically:I've actually had some discussions with Sun the other day; the issue
is that the default server address in CUPS 1.2 is a domain socket,
which Java does not support. They will be implementing a fix for
that (fallback to localhost IP socket), but in the meantime you can
create/update an /etc/cups/client.conf file containing:
ServerName localhost
to force your Java applications to use IP instead of domain sockets.
This is a niggling problem! Has anyone seen it and found a fix (other than printing using a non-java text editor)?java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-1ubuntu0.16.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)