lucene-java-user mailing list archives

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

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.search.*;
  import org.apache.lucene.queryParser.*;

James

-----Original Message-----
From: alex [mailto:a@wong45.freeserve.co.uk]
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.search;
  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.

Search.java:4: Class org.apache.lucene.document not found in import.
  import org.apache.lucene.document;
         ^
Search.java:5: Class org.apache.lucene.index not found in import.
  import org.apache.lucene.index;
         ^
Search.java:6: Class org.apache.lucene.search not found in import.
  import org.apache.lucene.search;
         ^
Search.java:7: Class org.apache.lucene.queryParser not found in import.
  import org.apache.lucene.queryParser;
         ^
sorry if this is a stupid question but im stuck

thxs

Alex


--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message