"Laura L. Evangelista" <[EMAIL PROTECTED]> writes:
> John Zukowski wrote:
>
> > Does the Linux JDK support printing?
>
> If you mean it comes with the JDK, yes ... I'm using JDK 1.1.3.
>
> > The error message seems to imply that it didn't come from the source in
> > from the AWT book. Is this something you added, or does it come from the
> > Linux port?
>
> The error did not come from the source. This error dialog is part of the
> Print Dialog that comes up when the getPrintJob() method is called ... (I did
> not change anything in the source code.) ... Right there, pjob becomes null,
> not giving me the chance to get into the loop following it ...
>
> > I'm no longer on the Java-Linux mailing list, so I'm not sure if anyone
> > else answered this for you already.
>
> My problem has not been solved yet ...
>
> I hope somebody can help me ... Printing is a real necessity ...
>
Printing with java 1.1.6 on linux works, I don't know if it works with 1.1.3.
The error you get is thrown if java cannot execute /usr/bin/lpr or
/usr/bin/lp. Does one of these files exist on your system?
Have you tried printing to a file?
Jürgen
--
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802