On Tue, Oct 14, 2014 at 01:34:00PM +0100, Nick Burch wrote:
> On Tue, 14 Oct 2014, Kamil Żyta wrote:
> >> project conventions
> >
> > I'm not familiar with java. So I need to create 
> > org/apache/tika/parser/external/ dir
> > and copy there tika-external-parsers.xml?
> 
> + add that to your classpath, so java finds it. (Long term putting it in a 
> jar might be best)
> 
> >> tika-core/src/test/java/org/apache/tika/parser/external/ExternalParserTest.java
> >
> > I use version 1.5 and this directory is missing
> 
> I'd suggest trying a newer version of Tika

in 1.6 this file is missing too.

> 
> >> Not on my version of Tika it doesn't...
> >>
> >> If you edit that file to do so, you still need to provide the external
> >> parsers xml file to Tika in the right place, so Tika will find it
> >>
> >
> > http://pastebin.com/Ug1ebdWd
> 
> You're not adding the current directory to your classpath, so when you run 
> the tika app it isn't picking up the xml file
> 
> Running a jar with additional things on the classpath is a bit fiddly:
> http://stackoverflow.com/questions/15930782/call-java-jar-myfile-jar-with-additional-classpath-option
> 
> You'd basically need to do something like
> java -classpath tika-app.jar:. org.apache.tika.cli.TikaCLI
> 

http://pastebin.com/wSgwFva3

K

Reply via email to