did you miss the page here http://wiki.apache.org/solr/Solrj ? this tells you 
the jars required for your classpath as well as usage examples 

On Oct 1, 2010, at 11:57 AM, Xin Li wrote:

> That's precisely the reason I was asking about JARs too. It seems that I
> am the minority that ran into SolrJ issue. If that's the case, I will
> grab Perl solution, and come back to SolrJ later. 
> 
> Thanks,
> Xin
> 
> -----Original Message-----
> From: Allistair Crossley [mailto:a...@roxxor.co.uk] 
> Sent: Friday, October 01, 2010 11:52 AM
> To: solr-user@lucene.apache.org
> Subject: Re: any working SolrJ code example for Solr 1.4.1
> 
> no example anyone gives you will solve your class not found exception ..
> you need to ensure the relevant jars (in dist) are included in your solr
> instance's lib folder i guess?
> 
> On Oct 1, 2010, at 10:50 AM, Xin Li wrote:
> 
>> Hi, there, 
>> 
>> Just picked up SolrJ few days ago. I have my Solr Server set up, data
>> loaded, and everything worked fine with the web admin page. Then
> problem
>> came when I was trying to use SolrJ to interact with the Solr server.
> I
>> was stuck with "NoClassNotFoundException" yesterday. Being new to the
>> domain is a factor, but SolrJ could really use some more updated
>> documentation. 
>> 
>> .. Long story short, does anyone have a minimal working SolrJ example
>> interacting with Solr 1.4.1? It would be nice to know the JARs too
> since
>> the errors I got were probably more related to JARs than the code
>> itself. 
>> 
>> Thanks,
>> Xin 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> This electronic mail message contains information that (a) is or
>> may be CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE
>> PROTECTED
>> BY LAW FROM DISCLOSURE, and (b) is intended only for the use of
>> the addressee(s) named herein.  If you are not an intended
>> recipient, please contact the sender immediately and take the
>> steps necessary to delete the message completely from your
>> computer system.
>> 
>> Not Intended as a Substitute for a Writing: Notwithstanding the
>> Uniform Electronic Transaction Act or any other law of similar
>> effect, absent an express statement to the contrary, this e-mail
>> message, its contents, and any attachments hereto are not
>> intended
>> to represent an offer or acceptance to enter into a contract and
>> are not otherwise intended to bind this sender,
>> barnesandnoble.com
>> llc, barnesandnoble.com inc. or any other person or entity.
> 
> 
> This electronic mail message contains information that (a) is or
> may be CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE
> PROTECTED
> BY LAW FROM DISCLOSURE, and (b) is intended only for the use of
> the
> addressee(s) named herein.  If you are not an intended recipient,
> please contact the sender immediately and take the steps
> necessary
> to delete the message completely from your computer system.
> 
> Not Intended as a Substitute for a Writing: Notwithstanding the
> Uniform Electronic Transaction Act or any other law of similar
> effect, absent an express statement to the contrary, this e-mail
> message, its contents, and any attachments hereto are not
> intended
> to represent an offer or acceptance to enter into a contract and
> are not otherwise intended to bind this sender,
> barnesandnoble.com
> llc, barnesandnoble.com inc. or any other person or entity.

Reply via email to