title: Apache Tika App configuration file
body: <p>I'm using Apache Tika App on my Ubuntu 16.04 Server as a comand line tool to extract content of documents.</p>
  
  <p>The [Apache Tika website][1] says the following:</p>
  
  <blockquote>
    <p><strong>Build artifacts</strong></p>
    
    <p>The Tika build consists of a number of components and produces the
    following main binaries:</p>
    
    <p><strong>tika-core/target/tika-core-*.jar</strong> Tika core library. Contains the core interfaces and classes of Tika, but none of the parser
    implementations. Depends only on Java 6.</p>
    
    <p><strong>tika-parsers/target/tika-parsers-*.jar</strong> Tika parsers. Collection of classes that implement the Tika Parser interface based on various
    external parser libraries.</p>
    
    <p><strong>tika-app/target/tika-app-*.jar</strong> Tika application. Combines the above components and all the external parser libraries into a single
    runnable jar with a GUI and a command line interface.</p>
  </blockquote>
  
  <p>So I have downloaded the last verstion (1.18) of <code>tika-app-*.jar</code>. That was just a single file.</p>
  
  <p>Running this in a command line like <code>java -jar tika-app-1.18.jar -t &lt;filename&gt;</code> gives me the needed output of the file content but also each time I get two warnings:</p>
  
  <blockquote>
    <p>July 28, 2018 3:29:27 PM
    org.apache.tika.config.InitializableProblemHandler$3
    handleInitializableProblem WARNING: J2KImageReader not loaded.
    JPEG2000 files will not be processed. See
    <a href="https://pdfbox.apache.org/2.0/dependencies.html#jai-image-io" rel="noreferrer">https://pdfbox.apache.org/2.0/dependencies.html#jai-image-io</a> for
    optional dependencies.</p>
    
    <p>July 28, 2018 3:29:27 PM
    org.apache.tika.config.InitializableProblemHandler$3
    handleInitializableProblem WARNING: org.xerial's sqlite-jdbc is not
    loaded. Please provide the jar on your classpath to parse sqlite
    files. See tika-parsers/pom.xml for the correct version.</p>
  </blockquote>
  
  <p>I don't know if those warning slow things down but it is hard to follow other output amongst those repetative warnings.</p>
  
  <p>I have tried to point Tika to my own configuration file by: </p>
  
  <p><code>java -jar tika-app-1.18.jar --config=tika-config.xml -t &lt;filename&gt;</code></p>
  
  <p>My tika-config.xml file is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;properties&gt;
    &lt;parsers&gt;
      &lt;parser class="org.apache.tika.parser.DefaultParser"&gt;
        &lt;mime-exclude&gt;image/jpeg&lt;/mime-exclude&gt;
        &lt;mime-exclude&gt;application/x-sqlite3&lt;/mime-exclude&gt;
        &lt;parser-exclude class="org.apache.tika.parser.jdbc.SQLite3Parser"/&gt;
      &lt;/parser&gt;
    &lt;/parsers&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>If I use that config I get <code>No protocol: filename.doc</code> and the warnings are still in place.</p>
  
  <p>How to exclude jpeg and sqlite parsers?</p>