Oh, I see what the problem is. Tthose org.apache.lucene.demo.* things (classes) are in the lucene _demo_ Jar file, so you have to make sure that Jar file is in your CLASSPATH (or maybe in WEB-INF/lib, if you are dealing with a web app).
Otis --- Gasi <[EMAIL PROTECTED]> wrote: > Hallo Erik, > > thank you for your both answers, you was right that it has to work. > The > error were these both directives: " org.apache.lucene.demo.*, > org.apache.lucene.demo.html.Entities" who are of course not part of > the > lucene-1.4.3.jar. But in your book you could give a hint that these > two > directives cannot be used on webserver. But I understand that this > only a > simple, because as in your book described lucene is very powerful. > Your > lucene book is very good, and now I thinking to buy your Book about > "Ant". > > Greetings > > Thank you very match > > > Gaston > ----- Original Message ----- > From: "Erik Hatcher" <[EMAIL PROTECTED]> > To: <general@lucene.apache.org> > Sent: Wednesday, August 31, 2005 8:25 PM > Subject: Re: lucene webdemo on a webhosting hosting account > > > > Gaston, > > > > You might be best posting this to the java-user e-mail list instead > > of [EMAIL PROTECTED] which surely has less subscribers. > > > > My hunch is that you need to have Lucene's JAR in the WEB-INF/lib > > directory of the WAR (or WAR-structured directory) you're > deploying. > > You'll also need the demo JAR for indexing, though I don't think > you > > need that for searching. > > > > Please consult with your hosting company's support as this issue is > > primarily with integrating with their environment and not with > Lucene > > itself. > > > > Erik > > > > > > On Aug 30, 2005, at 5:04 PM, Gasi wrote: > > > >> Hallo Otis, > >> > >> sorry when my question is a little studpid, but I wrote in my Mail > >> that the > >> example from your book worked on my PC excellent, and on my PC I > >> am able to > >> set the Classpath Variable "-classpath lucene-1.4.3.jar". But how > >> to manage > >> this on a webhosting account without root permission? Is this > >> possible? My > >> question is : which files should I upload to run the > lucenewebdemo? > >> the > >> whole luceneweb directory, lucene-1.4.3.jar, and the webindex of > >> course. # > >> But I have an error that this directives cannot be found on my > >> webspace: > >> "org.apache.lucene.analysis.*, org.apache.lucene.document.*, > >> org.apache.lucene.index.*, org.apache.lucene.search.*, > >> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*, > >> org.apache.lucene.demo.html.Entities". I understand this that they > >> cannot be > >> found. And here is my question: Which files schould I also upload > >> to solve > >> this problem? > >> I cannot set a Classpathvariable on a webhosting account like > >> mycgiserver.com. > >> > >> Thank you for your answer > >> > >> > >> Greetings > >> > >> > >> Gaston > >> > >> ----- Original Message ----- > >> From: "Otis Gospodnetic" <[EMAIL PROTECTED]> > >> To: <general@lucene.apache.org> > >> Sent: Tuesday, August 30, 2005 10:46 PM > >> Subject: Re: lucene webdemo on a webhosting hosting account > >> > >> > >> > >>> Gaston, > >>> > >>> You need to have just that 1 Lucene Jar file, and make sure that > that > >>> Jar file is in your CLASSPATH. If you need help understanding > how > >>> CLASSPATH works, please see > >>> http://www.google.com/search?q=classpath%20tutorial . > >>> > >>> Otis > >>> > >>> --- Gasi <[EMAIL PROTECTED]> wrote: > >>> > >>> > >>>> > >>>> > >>>> > >>>> > >>>> Hello, > >>>> > >>>> first I must say I bought your Book Lucene in Action and it is > very > >>>> good. If it wouldnt't need expierence in ANT, I dont' have, it > would > >>>> be fantastic, but so it is "only" very good. So my question is > about > >>>> the webdemo from Appendix A. I tried it with Tomcat on my > Computer > >>>> and it worked perfectly, a very good explantion how to use it, > >>>> greetings for the authors. But now I would like to try the same > >>>> demo > >>>> on my "mycgiserver.com-account". In your book it is explained > that > >>>> there must be only the "lucene-1.4.3.jar" on the webhost > directory. > >>>> But how to install the files who are imported by > >>>> "org.apache.lucene.analysis.*, org.apache.lucene.document.*, > >>>> org.apache.lucene.index.*, org.apache.lucene.search.*, > >>>> org.apache.lucene.queryParser.*, org.apache.lucene.demo.*, > >>>> org.apache.lucene.demo.html.Entities" ? > >>>> Shall I install the whole lucene source? > >>>> > >>>> I am happy for every answer > >>>> > >>>> > >>>> Thank You > >>>> > >>>> > >>>> Gaston > >>>> > >>> > >> > > > > > >