Search code examples
javawindowswindows-xpluke

Error launching Luke(Java App) from WinXP


I downloaded luke-1.0.1.jar (Luke 1.0.1 binary without any dependencies) from http://code.google.com/p/luke/downloads/list.

And I have WinXP, with latest Java 6 downloaded from Oracle/Sun web site.

I run the command line: "java -jar luke-1.0.1.jar" and try to launch Luke, but I got following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/analysis/Analyzer
Caused by: java.lang.ClassNotFoundException: org.apache.lucene.analysis.Analyzer
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.getopt.luke.Luke. Program will exit.

Any clue, what shall I do? I totally have no knowledge of Java.

Thanks

Hardy


Solution

  • Use luke-all.jar instead,

    http://code.google.com/p/luke/downloads/detail?name=lukeall-1.0.1.jar&can=2&q=