Xin,

I also had a similar error when I picked up SolrJ.

See the first section of this wiki page for the extra jars (the ones not found 
in the dist directory):
http://wiki.apache.org/solr/Solrj

-Jon

-----Original Message-----
From: Xin Li [mailto:x...@book.com] 
Sent: Friday, October 01, 2010 8:58 AM
To: solr-user@lucene.apache.org
Subject: RE: any working SolrJ code example for Solr 1.4.1

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.


---------------------------------------------------------------------
SECURITY/CONFIDENTIALITY WARNING:  
This message and any attachments are intended solely for the individual or 
entity to which they are addressed. This communication may contain information 
that is privileged, confidential, or exempt from disclosure under applicable 
law (e.g., personal health information, research data, financial information). 
Because this e-mail has been sent without encryption, individuals other than 
the intended recipient may be able to view the information, forward it to 
others or tamper with the information without the knowledge or consent of the 
sender. If you are not the intended recipient, or the employee or person 
responsible for delivering the message to the intended recipient, any 
dissemination, distribution or copying of the communication is strictly 
prohibited. If you received the communication in error, please notify the 
sender immediately by replying to this message and deleting the message and any 
accompanying files from your system. If, due to the security risks, you do not 
wish to receive further communications via e-mail, please reply to this message 
and inform the sender that you do not wish to receive further e-mail from the 
sender. 

---------------------------------------------------------------------

Reply via email to