Using JavaPOS with an EPSON printer

205 views Asked by At

I'm trying to use JavaPOS and making a little program that allows me to print something on the EPSON TM-T200III but i don't quite know how to do that, here's what I've done so far:

    try {
        printer.open("POSPrinter");
        printer.claim(1000);
        printer.setDeviceEnabled(true);

        String textToPrint = "test";
        printer.printNormal(POSPrinterConst.PTR_S_RECEIPT, textToPrint);

        printer.setDeviceEnabled(false);
        printer.release();
        printer.close();
    } catch (JposException e) {
        e.printStackTrace();
    }

and here's what i get

jpos/res/jpos.properties file not found
jpos/res/jpos.properties file not found
jpos/res/jpos.properties file not found
jpos.JposException: Service does not exist in loaded JCL registry
    at jpos.loader.simple.SimpleServiceManager.createConnection(SimpleServiceManager.java:179)
    at jpos.loader.JposServiceLoader.findService(JposServiceLoader.java:154)
    at jpos.BaseJposControl.open(BaseJposControl.java:493)
    at it.smi.retail.pos.JavaPOSConfig.main(JavaPOSConfig.java:12)
0

There are 0 answers