title: Java Printing in Ubuntu
body: <p>I'm developing a small app to print data in Ubuntu,the problem is my app works fine in windows using:</p>
  
  <pre><code>PrintService service = PrintServiceLookup.lookupDefaultPrintService();
  
  FileInputStream fis = new FileInputStream(myfile);
  
  DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
  DocPrintJob job = service.createPrintJob();
  
  Doc doc = new SimpleDoc(fis, flavor, null);
  job.print(doc, null);
  fis.close();
  </code></pre>
  
  <p>However in Ubuntu, it just doesnt print. Is there any special config for Linux printing  for the printing API I am using? Or am I missing something else?</p>