title: How to fix this error on tabula.read_pdf() function in Python
body: <p>I am trying to extract tables from a PDF file using Python (Pycharm).</p>
  
  <p>I tried the following code:</p>
  
  <pre><code> from tabula import wrapper
   object = wrapper.read_pdf("C:/Users/Ojasvi/Desktop/sample.pdf")
  </code></pre>
  
  <p>However, the error i got was:</p>
  
  <pre><code>"tabula.errors.JavaNotFoundError: `java` command is not found from this Python process. Please ensure Java is installed and PATH is set for `java`"
  </code></pre>