i'm very new to JavaPOS
When i try to init the printer i've got this error :
"Could not create an instance"
I have installed the epson ADK 1.14.1, executed the JavaPOS.bat, create the xml file, set the property to link this file in my app :
System.setProperty(JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME, System.getProperty("jpos.xml.url"));
I have java8 (32bits). I try to connect :
POSPrinter printer = new POSPrinter();
printer.open("POSPrinter");
where printerLogicalName is the same as in .xml file :
<JposEntry logicalName="POSPrinter">
I've checked with the CheckHealth tool, this is working, something is printed... I have no idea what to check... Any idea?
My code :
private static final POSPrinter initPrinter(final String printerLogicalName) throws JposException {
System.setProperty(JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME, System.getProperty("jpos.xml.url"));
POSPrinter printer = new POSPrinter();
printer.open("POSPrinter");
...
Edit : I managed to adapt a provided JavaPOS sample, and i can now print but only with a Java Application, and only outside eclipse (executing the .jar file).
If i run the app in eclipse i have the error : "Service does not exist in loaded JCL registry".
And concerning the webapp, i've tried to deploy it in a running tomcat (outside eclipse) but I have same error "Could not create an instance"