Well, an awful lot of people use it successfully, so the first place I'd look is my classpath and be sure you don't have unexpected jars in there. Perhaps ones from a different version of Lucene, perhaps ones pointing to "interesting" places in your JVM. Perhaps.....
Second, have you tried it on any other linux boxes? Is it possible that the one you're using is hosed? Without more information though, it's hard to say anything. You haven't included the version of Lucene you're using (which is suggested by your code snippet, perhaps the Lucene user's list would be a better forum?). Nor the version of your JVM. Nor your linux version. Nor.... Best Erick On Fri, Jul 9, 2010 at 7:49 PM, sarfaraz masood < sarfarazmasood2...@yahoo.com> wrote: > I have problems when i execute my prog on linux having this following piece > of code. > { > > Document d; > Analyzer analyzer = new PorterStemAnalyzer(); > System.out.println("1"); > > > Directory index = FSDirectory.open(new File("index1")); > System.out.println("2"); > > IndexWriter w = new IndexWriter(index, analyzer, true, > IndexWriter.MaxFieldLength.UNLIMITED ) ; // MY PROG HANGS UP HERE > System.out.println("3"); > . > . > . > } > > > Strangely this exact prog runs well on windows. It simply hangs > up(doesnt halt) while creating the IndexWriter object in linux. The account > via > which im logged in has sufficient rights for the concerned folder. > > > -Sarfaraz > > > >