Hi Erik

   The \ must be escaped in the path, i.e : ...new File("c:\\temp");

Regards,
Olivier

[EMAIL PROTECTED] a écrit : Hello,

Does anyone know why this does not work?
The fileDir is of the class File and points to an empty temp directory.
I tried switching true and false


import org.apache.lucene.index.IndexWriter;

File indexDir = new File("c:\temp");

IndexWriter writer = new IndexWriter(indexDir, new StandardAnalyzer(), false);


Regards,

Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



                
---------------------------------
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.

Reply via email to