Hi Christopher, At my environment, IndexFiles demo works fine. May be you must give directory path including source data you want to index after '-docs'.
For example, $ ls /path/to/source/dir aaa.txt bbb.txt $ java -cp "demo/lucene-demo-4.10.2.jar:analysis/common/lucene-analyzers-common-4.10.2.jar:core/lucene-core-4.10.2.jar" org.apache.lucene.demo.IndexFiles -docs /path/to/source/di Regards, Tomoko 2014-12-11 2:25 GMT+09:00 Christopher So <chr...@necaonline.com>: > Hi all, > > I am trying to get the demo for Lucene to run but I am running into a > problem. When I try to run the IndexFiles command through the command > prompt > I get an ArrayOutOfBoundsException at > org.apache.lucene.demo.IndexFiles.main. The line that I put into the prompt > is > > > > java -classpath > > C:\Users\chriss\Downloads\lucene-4.10.2\lucene-4.10.2\core\lucene-core-4.10. > > 2.jar;C:\Users\chriss\Downloads\lucene-4.10.2\lucene-4.10.2\queryparser\luce > > ne-queryparser-4.10.2.jar;C:\Users\chriss\Downloads\lucene-4.10.2\lucene-4.1 > > 0.2\analysis\common\lucene-analyzers-common-4.10.2.jar;C:\Users\chriss\Downl > oads\lucene-4.10.2\lucene-4.10.2\demo\lucene-demo-4.10.2.jar > org.apache.lucene.demo.IndexFiles -docs > > > > Thanks in advance for any help. > >