You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2010/10/02 22:42:28 UTC

[Solr Wiki] Update of "Solrj" by AllistairCrossley

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "Solrj" page has been changed by AllistairCrossley.
The comment on this change is: People seem to regularly ask which jars are required on the mailing list and often complain of class not found errors. I have just written a test solrj class to see what is really needed..
http://wiki.apache.org/solr/Solrj?action=diff&rev1=52&rev2=53

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

  
  
  = Setting the classpath =
- == Ant ==
  
- The jars required in the classpath for SolrJ are,
+ There are several folders containing jars used by SolrJ: /dist, /dist/solrj-lib and /lib. A minimal set of jars (you may find need of others depending on your usage scenario) to use SolrJ is as follows:
  
+ From /dist:
+ 
+  * apache-solr-solrj-*.jar
+ 
+ From /dist/solrj-lib
+ 
-  * commons-codec-1.3.jar (*)
+  * commons-codec-1.3.jar
-  * commons-fileupload-1.2.1.jar
   * commons-httpclient-3.1.jar (*)
-   * commons-logging-1.0.4.jar
-  * commons-io-1.4.jar (*)
+  * commons-io-1.4.jar
+  * jcl-over-slf4j-1.5.5.jar
-  * geronimo-stax-api_1.0_spec-1.0.1.jar (*)
-  * apache-solr-solrj-*.jar (+)
-  * wstx-asl-3.2.7.jar (*)
-   * stax-api-1.0.1.jar
-  * slf4j-api-1.5.5.jar (*)
+  * slf4j-api-1.5.5.jar
+ 
+ From /lib
+ 
-  * slf4j-simple-1.5.5.jar 
+  * slf4j-jdk14-1.5.5.jar
  
- Note that only the jars marked with an asterisk are located in dist/solrj-lib directory of the Solr 1.4.0 download. solr-solrj-1.4.0.jar can be found in the dist directory.
- 
- '''TODO:''' The three unmarked jars are missing in dist/solrj-lib.
  
  == Maven ==
+ 
  Solrj is available in the official Maven repository. Add the following dependency to your pom.xml to use SolrJ
  
  {{{