I am using Lucene and trying to set the classpath for the four jar files as mentioned in the Lucene 5.0.0 demo API "You need four JARs: the Lucene JAR, the queryparser JAR, the common analysis JAR, and the Lucene demo JAR.
Put all four of these files in your Java CLASSPATH.
I am trying to set classpath variable by entering the following variable value in classpath environment variable "F:\Academic\KAU_ResearchGroups\PlagiarismDetection\Lucene\lucene-5.0.0\core; F:\Academic\KAU_ResearchGroups\PlagiarismDetection\Lucene\lucene-5.0.0\queryparser; F:\Academic\KAU_ResearchGroups\PlagiarismDetection\Lucene\lucene-5.0.0\analysis\common; F:\Academic\KAU_ResearchGroups\PlagiarismDetection\Lucene\lucene-5.0.0\demo;
but whenever I run the following command: java org.apache.lucene.demo.IndexFiles -docs {path-to-lucene}/src
I get the error message "Error: Could not find or load main class org.apache.lucene.IndexFiles".
How can I sort out this problem