JavaPOS not working on Epson TM-T20II outside Netbeans 8.2

653 Views Asked by At

I have successfully integrated JavaPos to my java (JavaFX) app, tested it and it works with the device.

Now the problem is that the application cannot identify the printer if I execute the application outside the Netbeans 8.2 IDE.

This is the error I get:

Sat May 19 10:48:47 GMT 2018,INFO,jp.co.epson.upos.core.v1_14_0001.pntr.CommonPrinterService,createCommInstance,2907,Could not create an instance.

I have investigated on possible solution to this but to no avail. I even found a solution here setting us javapos which did work for me during the development, but that was it.

My question is, how can I make the application work with the device outside Netbeans?

1

There are 1 best solutions below

0
On

Install javaPOS version 1.14.6.

On windows 10 or 8.1 copy:

BluetoothIO.DLL
epsonjpos.dll
EthernetIO31.DLL
SerialIO31.dll
USBIO31.DLL

from C:\Program Files\EPSON\JavaPOS\bin\ to C:\Program Files\Java\jre1.8.0.171\bin\

Import lib to your project from C:\Program Files\EPSON\JavaPOS\lib\

Run javaPOS application.