On Wed, 08 Jul 2009 16:47:57 +0200 (CEST)
Helmut Jarausch <jarau...@igpm.rwth-aachen.de> wrote:

> Hi,
> 
> I'm in need to use some commercial software (Matlab and Maple) which
> come with their own (probably old) version of Java.
> 
> Now, both of those software packages cannot print, they don't see any
> CUPS printer UNLESS I remove the symlink /usr/lib/libcups.so which
> points to libcups.so.2
> 
> But some GenToo packages do need that link, e.g. x11-lib/qt-gui won't
> install unless that link is there.
> 
> I remember there is a bug with older versions of Java accessing CUPS,
> and probably my commercial packages contain such an old version.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516881
Which leads to:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500903

which suggests that a wrapper script like this for starting matlab
should do the trick:

---------o<---------------o<-------
#!/bin/bash
export CUPS_SERVER=localhost
command_to_start_matlab
---------o<---------------o<-------

Alternately, try commenting out the line
Listen /var/run/cups/cups.sock
in /etc/cups/cupsd.conf and restarting cups
( If that is an acceptable solution for you, since this will mean cups
only listen on the TCP socket )

/loki_val

Reply via email to