Printing problems

Hi!

I have a printing problem with Java Studio 8. My printer prints the banner page OK, but after that it stops for a while, and restart printing the banner page. The problem is that I can print documents from StarOffice 8 and ArcoRead 7. I use an HP DeskJet 970 Cxi connected to USB port on my computer, SUN Blade 100 an Solaris 10 6/06, and the latest patches. Any ideas? I have added a Adaptec USB2 Connect for better perfomance with USB memory sticks.

Greetings

Lee

[494 byte] By [MrLee] at [2007-11-26 10:05:11]
# 1
Does it happen when you try print any document from the ide (say a java file) or only for some documents?Are there any error messages in the ide log file?Can u try unchecking 'Banner' on the 'appearance' tab on the Print dialog?
KarthikR at 2007-7-7 1:41:33 > top of Java-index,Development Tools,Java Tools...
# 2

It happens every time I try to print a document, and I have the same problem with Sun Studio 11. This is the last log update from the printer logs:

09/12 18:59:11: Bad exit from interface program for printer Hagbard: 141

09/12 18:59:11: printer fault. type: write root, status: 14

msg: (The interface program returned with a reserved exit code.)

I disabled the banner page, but the problem i still where.

Regards

Lee

MrLee at 2007-7-7 1:41:33 > top of Java-index,Development Tools,Java Tools...
# 3

Not sure why the error happes (especially when you are able to print from staroffice and acrobat to the same printer...)

- Are you running in English locale?

- Are you able to print from a standalone java program outside of the ide (say using http://java.sun.com/docs/books/tutorial/2d/printing/examples/SimpleBook.java from http://java.sun.com/docs/books/tutorial/2d/printing/collection.html)...

KarthikR at 2007-7-7 1:41:33 > top of Java-index,Development Tools,Java Tools...
# 4
No, the problem is still there. I use the following java version:java version "1.5.0_08"Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)if it helps.Greetings
MrLee at 2007-7-7 1:41:33 > top of Java-index,Development Tools,Java Tools...
# 5

If you are having trouble with printing from a java program, it is quite likely a jdk issue. Can you pl. try posting the question at java forums:

http://forum.java.sun.com/forum.jspa?forumID=20

Also, I cam across this article http://developers.sun.com/solaris/articles/basicprinting.html (but may not be directly helpful to you...)

KarthikR at 2007-7-7 1:41:33 > top of Java-index,Development Tools,Java Tools...
# 6
Thank you for your help. I will post it at the link you provided.Thanks Lee :-)
MrLee at 2007-7-7 1:41:33 > top of Java-index,Development Tools,Java Tools...