It looks like you are not specifying the directory you want to index. Otis
----- Original Message ---- From: Miki Sun <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, March 14, 2006 11:27:04 AM Subject: IndexFiles.java Hiya I am a beginner of Lucene. I try to use IndexFiles.java to index my text file directories, but it does not work. It always give me this error message even when I comment it out: Usage: java org.apache.lucene.demo.IndexFiles <root_directory> What does "if (args.length == 0) " mean? Thanks Miki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]