[英]Epson JavaPOS ADK install - Windows error 2 occured while loading the Java VM
[英]Epson Java Pos ADK Exception: It is not initialized
现在我尝试编写一个使用Epson Java Pos ADK的Java应用程序。
我做了什么:-Installed Java 1.6.0_22 -Installed Java JDK -Installed Eclipse - 安装了Epson Java Pos ADK 1.11.8
然后我用Com Port Tool尝试了我的打印机,我发给他十六进制字符,看看是否一切正常。 它确实!
然后我开始开发我的应用程序。 在jpos.xml
我使用了Epson Java Pos ADK Package中的SetupPOS生成器。
我使用了几行来从我的应用程序中进行测试打印:
posPrinter = new POSPrinter();
posPrinter.open("##THE_NAME_I_SET_IN_JPOS_XML##");
posPrinter.claim(0);
posPrinter.setDeviceEnabled(true);
posPrinter.printNormal(station, "xxxxxxxxxxxxxxxxxx\n");
posPrinter.cutPaper(0);
posPrinter.release();
posPrinter.setDeviceEnabled(false);
posPrinter.close();
但这个应用程序的结果是:
jpos.JposException:它未初始化。 在jp.co.epson.un.Pntr.ComnPrinterService.sendOutputData的jp.co.epson.upos.pntr.CommonPrinterService.sendOutputData(未知来源)的jp.co.epson.upos.pntr.CommonPrinterService.checkInitialized(未知来源) (未知来源)jp.co.epson.upos.pntr.CommonPrinterService.executeNormalPrint(未知来源),位于jpos.POSPrinter.printNormal(未知来源)的jp.co.epson.upos.pntr.CommonPrinterService.printNormal(未知来源)在Main.main的Printer(Printer.java:146)(Main.java:28)
我在两台不同的PC(Vista和XP 32bit)上试用了相同的版本和工具,但它总是一样的。
我还尝试了JavaPos示例测试应用程序和EpsonHealtCheckTool。 这个工具也是一样的。
不知道还有什么可以尝试,大家都知道这个问题吗?
PS:我的打印机Epson TM-U220A,串口连接似乎有效,因为当我尝试声明打印机而另一个应用程序使用COM端口时,我的应用程序说端口不可用。
谢谢。
我发现了最新的问题:我使用了错误的电缆。
我自己制作,请参阅下面的Epson文档:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.