title: python how to use tika with existing jar file without downloading again
body: <p>I'm using Tika and I realized that each time the jar file is downloaded and placed in Temp folder</p>
  
  <pre><code>Retrieving http://search.maven.org/remotecontent?filepath=org/apache/tika/tika-server/1.19/tika-server-1.19.jar to C:\Users\asus\AppData\Local\Temp\tika-server.jar.
  Retrieving http://search.maven.org/remotecontent?filepath=org/apache/tika/tika-server/1.19/tika-server-1.19.jar.md5 to C:\Users\asus\AppData\Local\Temp\tika-server.jar.md5.
  </code></pre>
  
  <p>The problem is that the jar file size is around 60MB, which takes some time to download.</p>
  
  <p>This is the code I'm using : </p>
  
  <pre><code>from tika import parser
  
  def get_pdf_text(path):
      parsed = parser.from_file(path):
      return parsed['content']
  </code></pre>
  
  <p>The only workaround I found is this : </p>
  
  <p>1 - Manually running the jar using <code>java -jar tika-server-x.x.jar --port xxxx</code></p>
  
  <p>2 - Using <code>tika.TikaClientOnly = True</code></p>
  
  <p>3 - Replacing <code>parser.from_file(path)</code> with <code>parser.from_file(path, '/path/to/server')</code></p>
  
  <p>But I don't want to run the jar file manually. It would be better if I can use Python to automatically run the jar file and setup tika with it without redownloading.</p>