title: Python tabula.io ERROR: Error from tabula-java: No protocol specified Exception in thread "main" java.awt.AWTError
body: <p>I am working on resolving a pdf parsing issue that I'm facing while using python based tabula-io library.</p>
  <p>tabula-py version: 2.2.0
  package default-jre-headless is already installed</p>
  <p>Please do help me out to identify what is it that I'm doing wrong here and suggest a possible solution to the problem maybe?</p>
  <p>Any Help would as always be much appreciated, always indebted to the dev community...</p>
  <pre><code>[tabula.io] ERROR: Error from tabula-java:
  No protocol specified
  Exception in thread &quot;main&quot; java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
          at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
          at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:102)
          at java.base/java.security.AccessController.doPrivileged(Native Method)
          at java.desktop/sun.awt.X11GraphicsEnvironment.&lt;clinit&gt;(X11GraphicsEnvironment.java:61)
          at java.base/java.lang.Class.forName0(Native Method)
          at java.base/java.lang.Class.forName(Class.java:315)
          at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:101)
          at java.desktop/java.awt.GraphicsEnvironment$LocalGE.&lt;clinit&gt;(GraphicsEnvironment.java:83)
          at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:129)
          at java.desktop/java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1181)
          at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:327)
          at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:268)
          at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:254)
          at technology.tabula.Utils.pageConvertToImage(Utils.java:285)
          at technology.tabula.detectors.NurminenDetectionAlgorithm.detect(NurminenDetectionAlgorithm.java:101)
          at technology.tabula.CommandLineApp$TableExtractor.extractTablesBasic(CommandLineApp.java:421)
          at technology.tabula.CommandLineApp$TableExtractor.extractTables(CommandLineApp.java:408)
          at technology.tabula.CommandLineApp.extractFile(CommandLineApp.java:180)
          at technology.tabula.CommandLineApp.extractFileTables(CommandLineApp.java:124)
          at technology.tabula.CommandLineApp.extractTables(CommandLineApp.java:106)
          at technology.tabula.CommandLineApp.main(CommandLineApp.java:76)
  
  
  exception is Command '['java', '-Dfile.encoding=UTF8', '-jar', '/usr/local/lib/python3.6/site-packages/tabula/tabula-1.0.5-jar-with-dependencies.jar', '--pages', 'all', '--guess', '--format', 'JSON', '/tmp/1539334171190.pdf']' returned non-zero exit status 1.
  </code></pre>