java printing & (k)ubuntu hardy

as much as i like kubuntu 08.04.01, there is one issue that’s a pain in the netherregions: printing from java — it just doesn’t work with the sun6-java package :-( and CUPS 1.3 (which is the default version on 08.04.01): java’s printing subsystem will just get all confused by the missing page orientation that CUPS reports back and will take a runner.

luckily, pikopong has worked out a solution: edit /etc/cups/printers.conf and add

Option orientation-requested 3

before each closing </Printer> line, save, and restart your CUPS subsystem:

# /etc/init.d/cupsys restart

done.