Hi all,

I'm trying to use solrj for indexing in solr, but when I try to instantiate
the server, using :

SolrServer server = new CommonsHttpSolrServer("http://localhost:8080/solr";);

 I get the following runtime error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/solr/client/solrj/SolrServerException
Caused by: java.lang.ClassNotFoundException:
org.apache.solr.client.solrj.SolrServerException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)


I am following the this link :  http://wiki.apache.org/solr/Solrj   ,and
have included all the jar files specified there, in the classpath.


Do help me out with this, thanks in advance

Bijeet

Reply via email to