lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Ricci <>
Subject RE: import question
Date Sun, 22 Dec 2002 00:23:06 GMT

To include the contents of a package, you must append a "*" else you must
list each class individually. Try

  import org.apache.lucene.document.*;
  import org.apache.lucene.index.*;
  import org.apache.lucene.queryParser.*;


-----Original Message-----
From: alex []
Sent: Saturday, December 21, 2002 6:58 PM
To: Lucene User
Subject: import question

hello all

i m using lucene to write a search method but when i import classes such as

  import org.apache.lucene.document;
  import org.apache.lucene.index;
  import org.apache.lucene.queryParser;

I get these errors when compling what am i doiing wrong?. I manged to get
the demos to work so i assume i have set the classpaths correctly. Class org.apache.lucene.document not found in import.
  import org.apache.lucene.document;
         ^ Class org.apache.lucene.index not found in import.
  import org.apache.lucene.index;
         ^ Class not found in import.
         ^ Class org.apache.lucene.queryParser not found in import.
  import org.apache.lucene.queryParser;
sorry if this is a stupid question but im stuck



To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message