title: JavaPOS : Cannot connect to printer
body: <p>i'm very new to JavaPOS</p>
  
  <p>When i try to init the printer i've got this error :</p>
  
  <blockquote>
    <p>"Could not create an instance"</p>
  </blockquote>
  
  <p>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 :</p>
  
  <pre><code>System.setProperty(JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME, System.getProperty("jpos.xml.url"));
  </code></pre>
  
  <p>I have java8 (32bits). 
  I try to connect :</p>
  
  <pre><code>POSPrinter printer = new POSPrinter();
  printer.open("POSPrinter");
  </code></pre>
  
  <p>where printerLogicalName is the same as in .xml file :</p>
  
  <pre><code>&lt;JposEntry logicalName="POSPrinter"&gt;
  </code></pre>
  
  <p>I've checked with the CheckHealth tool, this is working, something is printed...
  I have no idea what to check...
  Any idea?</p>
  
  <p>My code :</p>
  
  <pre><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");
  ...
  </code></pre>
  
  <p>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). </p>
  
  <p>If i run the app in eclipse i have the error : "Service does not exist in loaded JCL registry".</p>
  
  <p>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" </p>