I striped off "bouncycastle" from tika-app-1.11.jar and everything is
working.  I can extract text just like before, but when I pass it an
encrypted PDF file, I get the expected error: "Exception in thread "main"
java.lang.NoClassDefFoundError:
org.bouncycastle.jce.provider.BouncyCastleProvider".

For my use, I can live with this.

Steve


On Fri, Feb 19, 2016 at 12:23 PM, Ken Krugler <[email protected]>
wrote:

> Hmm, I think in that case you'd need to manually strip those libs from the
> jar.
>
> Or do your own special build, with a modified pom.xml
>
> Or you could contribute a pull request to update the build, such that it
> also creates a version of the app jar that doesn't have crypto support.
>
> -- Ken
>
> ------------------------------
>
> *From:* Steven White
>
> *Sent:* February 19, 2016 9:15:21am PST
>
> *To:* [email protected]
>
> *Subject:* Re: Removing cryptographic JARs from Tika
>
> To be specific about my question.
>
> I want to remove all cryptographic JARs, such as Bouncy Castle, from
> tika-app-1.11.jar and yet be able to use tika-app-1.11.jar from the command
> line as I have always been.  No, I have no need to process encrypted files.
>
> Steve
>
>
> On Fri, Feb 19, 2016 at 12:05 PM, Steven White <[email protected]>
> wrote:
>
>> Hi,
>>
>> Is there a wiki or instructions on how to remove cryptographic software
>> from Tika?  Is it enough to simply remove the bouncy castle libraries from
>> Tika's JAR and yet be able to use Tika to its full capacity less encrypted
>> files?
>>
>> I have no need to extract text off encrypted files, but due to Tika
>> including cryptographic JARs, I won't be able to use.
>>
>> Thank you!!
>>
>> Steve
>>
>
>
> --------------------------
> Ken Krugler
> +1 530-210-6378
> http://www.scaleunlimited.com
> custom big data solutions & training
> Hadoop, Cascading, Cassandra & Solr
>
>

Reply via email to