JPOS Configuration Issues for Epson POS Printer in Windows

I am trying to print using jPOS on Windows and get the following exception:

jpos.JposException: Could not connect to service with logicalName = Printer: Exception.message=jp.co.epson.uposcommon.util.EpsonJposServiceInstanceFactory
    at jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source)
    at jpos.BaseJposControl.open(Unknown Source)
...

Additional Information:

I am trying to port our printing software for Java from Linux (where it works well) to Windows. We use the Epson TM-T70 printer. I installed the usual printer drivers and immediately was able to print the material using notepad, for example.

Now I installed the Epson JavaPoS ADK. I set up the printer using the SetupPOS application that comes with the ADK. I created a new configuration for my printer with the name of the printer logical device. I saved everything and he created the jpos.xml file.

When I try to run our application and it runs printer.open ("Printer"), where "Printer" is the name of the logical device and the printer is an instance of POSPrinter, I get the exception above.

I know that my generated jpos.xml file is used because if I provide an arbitrary logical device name, I get another exception.

I think the problem is in the configuration of the SetupPOS port. The printer is connected via USB. I tried the port name that appears in the Windows printer properties (ESDPRT001), and I even tried all the COM1-COM10 combinations, but nothing works.

Does anyone have a suggestion? Thank!

+3
source share
2 answers

Epson JavaPOS ADK - ... ahm... : " ". , jar (, epsonupos.jar, jposXXX.jar ) ext/lib JRE (!!!) ( JavaPOS ). , JavaPOS, JRE/JDK, , Epson - .

, jar JDK - ...

EDIT:

ADK Version 1.11.anywhat( , 1.11.9), , jar. : DLL ADK (1.13.17), bin JRE. , jar DLL - ...

+2

java-:

C:\Program Files\EPSON\JavaPOS\lib

C:\Program Files\EPSON\JavaPOS\SetupPOS

0

Source: https://habr.com/ru/post/1754492/


All Articles