Now I'm trying to write a Java application that uses the Epson Java Pos ADK.
What I did: -Installed Java 1.6.0_22 -Installed Java JDK -Installed Eclipse -Installed Epson Java Pos ADK 1.11.8
Then I tried my printer using the Com Port Tool, I will send it hexadecimal characters to find out if everything works. He does!
Then I started developing my application. In jpos.xmlI used the SetupPOS generator in the Java Pos ADK ADK.
I used several lines to do a test print from my application:
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();
But the result of this application is:
jpos.JposException: . jp.co.epson.upos.pntr.CommonPrinterService.checkInitialized( ) jp.co.epson.upos.pntr.CommonPrinterService.sendOutputData( ) jp.co.epson.upos.pntr.CommonPrinterService.sendOutputData( ) jp.co.epson.upos.pntr.CommonPrinterService.executeNormalPrint( ) jp.co.epson.upos.pntr.CommonPrinterService.printNormal( ) jpos.POSPrinter.printNormal( ) . (Printer.java:146) Main.main(Main.java:28)
(Vista XP 32bit), , .
JavaPos EpsonHealtCheckTool. .
, , ?
PS: Epson TM-U220A, , , , , COM-, , .
.