本文介绍了Java“打印机不接受作业".老兄弟打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个客户端,该客户端使用旧的Brother打印机从JAVA应用程序进行打印时出现问题.他得到的例外是打印机不接受作业".

I have client which has a problem with printing from JAVA applications, using old Brother printers. The exception he gets is "Printer is not accepting jobs".

其他应用程序(不是Java应用程序)设法使用这些打印机进行打印.他在不更改驱动程序的情况下切换到了新打印机(也是Brother),然后就可以使用了.

Other applications (not java applications) manage to print using these printers. He switched to a new printer (also Brother), without changing the driver and then it worked.

他的想法是他不能更换所有打印机,也不想重新安装所有打印机,因为他拥有由数百台计算机和打印机组成的网络.

The idea is that he cannot change all the printers, also he does not want to reinstall all of them, as he has a network of hundreds of computers and printers.

我已经在不同的论坛上阅读到Java版本1.5和1.6中存在错误,但是此应用程序仅适用于Java 1.5或更高版本...因此他无法切换到Java 1.4(使用Java 1.4时,打印有效)

I have read on different forums that there is a bug in java version 1.5 and 1.6, but this application only works with java 1.5 or above... so he cannot switch to java 1.4 (with java 1.4, the printing worked).

您能以某种方式帮助我,并给我一些解决该问题的方法吗?

Can you please help me somehow and give me some possible solution to this problem?

推荐答案

看来这是此错误.不幸的是,它被标记为低优先级,并且由于没有人愿意为此投票,因此被推迟了.

It appears that this is this bug. Unfortunately, it is marked as low priority, and since nobody has bothered to vote for it, it is being put off.

此论坛主题提供了一些有用的背景信息(回复#11),并且一种解决方法(答复#9),在尝试打印文件时会忽略打印机状态.

This forum thread gives some useful background (reply #11) and a workaround (reply #9) that ignores the printer status when trying to print a file.

如果您想用Java 7修复此错误,仍然有时间提交补丁

If you want this bug fixed in Java 7, there is still time to submit a patch.

编辑

我知道有人对这种解决方法提出异议,但是我并没有解决这个问题.无论如何,应该使用相同的方法或使用不同的方法来开发更好的版本.如果无法使用子类化和使用反射来调整私有状态,则可以下载Java 6源代码,修复错误并重新构建.

I was aware that someone disputed the workaround, but I didn't get my head around the problem. Whatever, it should be possible to develop a better version, either using the same approach or a different one. If subclassing and using reflection to tweak private state don't work, then you can download the Java 6 source code, fix the bug and rebuild.

我敢肯定,如果有人为您提供解决方案,那会很好,但请现实一点.这看起来像是一个影响很少的人的问题. IMO,您最大的成功机会是:

I'm sure it would be nice if someone had a solution for you, but lets be realistic. This looks like a problem that affects very few people. IMO, your best chances of success are:

  • 自助,
  • 支付Oracle支持合同,或
  • 聘请独立技术专家.

其中,自助是您快速解决问题的最佳机会...假设您有自己的技能,可以在公司内部进行此类工作.

Of these, self help has the best chance of giving you a quick resolution ... assuming you have people with the skills for doing this kind of work in-house.

这篇关于Java“打印机不接受作业".老兄弟打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 04:30