public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mario Fetka <mario-fetka@gmx.at>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] OFF-TOPIC: printing in java
Date: Thu, 10 May 2007 10:51:22 +0200	[thread overview]
Message-ID: <200705101051.29027.mario-fetka@gmx.at> (raw)
In-Reply-To: <d011e48d5324.46427d6d@shaw.ca>

[-- Attachment #1: Type: text/plain, Size: 1538 bytes --]

Am Donnerstag, 10. Mai 2007 10:03:25 schrieb Robert Wray:
> Does your printer's name contain a dash?
> If you're using jdk 1.6 a dash in your printers name might cause what
> you're seeing. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6252456
>
> Are you using java version 1.4 or earlier?
> Java 1.5 and later native support CUPS, earlier versions used lp commands.
>
> ---------------------------------------------------
>   The title of this message is "OFF-TOPIC" because it's not a thing only
> related with Gentoo but related to the Linux Java implementation. The
> question is has anybody get success in printing in java+linux? I use CUPS
> and it works when printing pdfs, text and OpenOffice.org documents. But
> when I try something like this:
>
> if (pJob.printDialog()) {
>       pJob.setPrintable(printableDocument, new PageFormat());
>       try {
>          pJob.print();
>       } catch (PrinterException printerException) {
>       System.out.println("Error Printing Document");
>    }
> }
>
>   the print dialog appears I select the correct printer and it seems that
> everitying works but when the document enters into the queue it's in the
> state printing and then automatically it changes to stoped. At no moment
> the printer really receives the document.

i also had the same problem with cups 1.2 its a problem with the new cups 
defaults

more Here

http://www.cups.org/articles.php?L433+I0+TFAQ+M10+P1+Qjava

i think this is the reason for your problem.

wfg
MArio

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-05-10  8:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200705091400.l49E05JW032177@robin.gentoo.org>
2007-05-10  8:03 ` [gentoo-java] OFF-TOPIC: printing in java Robert Wray
2007-05-10  8:51   ` Mario Fetka [this message]
2007-05-10 15:29     ` tramuntanal
2007-05-10 15:14   ` tramuntanal
2007-05-09  7:29 tramuntanal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200705101051.29027.mario-fetka@gmx.at \
    --to=mario-fetka@gmx.at \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox