--
Hello, I'm developing an application which implements JavaPOS. I have configured the setting correctly but I still not able to print the receipt. (I can make a print from CITIZEN JavaPOS TEST PRO Ver.1.3.4 but not from my program)
Here is some part of my code:import jpos.*;
import jpos.util.JposPropertiesConst;
...System.setProperty(JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME,"C:\\path_to_config\\jpos.xml");
...POSPrinter printer = new POSPrinter();
try {
printer.open("CITIZEN S310II USB Windows");
printer.claim(100);
printer.setDeviceEnabled(true);
printer.setMapMode(POSPrinterConst.PTR_MM_METRIC);
printer.transactionPrint(POSPrinterConst.PTR_S_RECEIPT, POSPrinterConst.PTR_TP_TRANSACTION);
String LF = ((char) 0x0a) + "";
printer.printNormal(POSPrinterConst.PTR_S_RECEIPT, "TEST" + LF + LF + LF);
printer.cutPaper(100);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
printer.setDeviceEnabled(false);
printer.release();
printer.close();
} catch (Exception e) {
e.printStackTrace();
}
}
....
The error occurred when I tried to call printer.claim(1000); statingjpos.JposException: CSJjposCom access error.
at com.citizen.jpos.b.e.d(Unknown Source)
at com.citizen.jpos.b.e.claim(Unknown Source)
at jpos.BaseJposControl.claim(Unknown Source)
at simplepos.billUI.printBill(billUI.java:[hidden])
....
My library are:
./CBMjpos.jar
./lib/comm.jar
./lib/jna.jar
./lib/xerces-2.6.0.jar
./lib/xerces2.jar
./lib/
please help, I can't find any resource to fix this problem
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
Join us in IRC at http://webchat.freenode.net/?channels=jpos
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/08c47062-baa4-436f-b42b-5c744a402c4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.