Hi, The "{" chars should not be in the path. The message is very clear, so fix your parameters and the demo should work!
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: jerrittpace [mailto:jerrittp...@yahoo.ie] > Sent: Friday, December 04, 2015 4:29 PM > To: java-user@lucene.apache.org > Subject: Re: lucene classpath > > I have set the CLASSPATH, as such: > > C:\Users\User5>echo %CLASSPATH% > C:\Users\User5\Documents\lucene\lucene-5.3.1\core\lucene-core- > 5.3.1.jar;C:\Users > \User5\Documents\lucene\lucene-5.3.1\queryparser\lucene-queryparser- > 5.3.1.jar;C: > \Users\User5\Documents\lucene\lucene-5.3.1\demo\lucene-demo- > 5.3.1.jar;C:\Users\U > ser5\Documents\lucene\lucene-5.3.1\analysis\common\lucene-analyzers- > common-5.3.1 > .jar > > But, when I try to run the demo: > > C:\Users\User5>java org.apache.lucene.demo.IndexFiles -docs > {C:\Users\User5\Docu > ments\lucene\lucene-5.3.1}/src > > I get this error: > > Exception in thread "main" java.nio.file.InvalidPathException: Illegal char > <:> > at index 2: {C:\Users\User5\Documents\lucene\lucene-5.3.1}/src > at > sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) > at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) > at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) > at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) > at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) > at java.nio.file.Paths.get(Paths.java:84) > at org.apache.lucene.demo.IndexFiles.main(IndexFiles.java:82) > > Any help would be much appreciated!! > > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/lucene- > classpath-tp4243489p4243596.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org