From owner-freebsd-java Sat Aug 14 10: 4:26 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 370E21522B for ; Sat, 14 Aug 1999 10:04:22 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id LAA12832; Sat, 14 Aug 1999 11:04:16 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id LAA15615; Sat, 14 Aug 1999 11:04:15 -0600 Date: Sat, 14 Aug 1999 11:04:15 -0600 Message-Id: <199908141704.LAA15615@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kfurge@worldnet.att.net Cc: Nate Williams , Sean Reilly , freebsd-java@FreeBSD.ORG Subject: Re: Error code 512 when printing In-Reply-To: References: <199908111440.IAA27950@mt.sri.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > I don't know if this has ever been tested. I don't know if the Xprint > > stuff even works outside of java. > > FWIW, it worked at one time. I developed a program that did some printing > a while back (well over 1 yr ago). I can't remember exactly which jdk I > developed it under, but whichever one it was printing worked OK at that > time. I'm thinking it was pre 1.1.5 or so. Some time later I upgraded to > 1.1.7 and the printing began doing to me exactly what Sean is reporting: > works fine if printing to a file, doesn't print or gives the "Error 512" > if printing directly to the printer. We find out why it quit working. Turn off banner creation. It turns out that the JDK has SysV (Solaris) printing hard-coded into the system, so the JDK uses /usr/bin/lp (vs. /usr/bin/lpr). Our lp emulator only supports the Posix features, and apparently Banner pages are not Posix specified, so the banner support in the JDK screws up printing. If you turn off banners, it should work fine. We're trying to figure out how best to solve this. The best solutions involves modifying the classes.zip file, but then you can no longer use the stock class files from other Java releases. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message