title: Java and thermal receipt printer
body: <p>Does anyone know how to print receipt use Java?
  I have googled for a long time. It seems Java POS should be a good solution. I have a quick look at it and it looks need the printer's Java driver. My printer is a cheap one, support ESC, but only have Windows driver.</p>
  
  <p>I also tried:</p>
  
  <pre><code> FileWriter out = new FileWriter("LPT1");
  </code></pre>
  
  <p>It does not work, </p>
  
  <blockquote>
    <p>java.io.FileNotFoundException: lpt1
    (The system cannot find the file
    specified)</p>
  </blockquote>
  
  <p>Printable does not work neither. </p>
  
  <p>Does any one know how to do this? Thanks.</p>