Hi guys

I've just built and installed tika as described in [1] and now I want
to use it. I've tried java -jar ./tika-0.2.jar

But I get: 
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/log4j/Layout Caused by: java.lang.ClassNotFoundException:
org.apache.log4j.Layout at java.net.URLClassLoader$1.run
(URLClassLoader.java:200) at java.security.AccessController.doPrivileged
(Native Method) at java.net.URLClassLoader.findClass
(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass
(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass
(Launcher.java:301) at java.lang.ClassLoader.loadClass
(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal
(ClassLoader.java:320) Could not find the main class:
org.apache.tika.cli.TikaCLI. Program will exit.

I think it's somehow because java can't find the maven files. Can
somebody give me a hint on how to get tika running. I've already
searched the web for some maven howtos but I can't find a plain "just
use the thing"-howto. Only those dealing about how to get maven into
eclipse. but I dont want to use eclipse right. I just want to use the
CLI for now.

thanks in advance

- Daniel

[1] http://lucene.apache.org/tika/gettingstarted.html

Reply via email to