Never mind, I just had to import more jars from /lib. On Tuesday, January 14, 2014 8:26:43 PM UTC-5, ZenMaster80 wrote: > > Thanks. I added the .jar as a dependency in a simple java project using > eclipse. > I get this error when I try to run the program, any clues? > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/lucene/util/Version > > at org.elasticsearch.Version.<clinit>(Version.java:42) > > at org.elasticsearch.node.internal.InternalNode.<init>( > InternalNode.java:121) > > at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159) > > at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166) > > at EntryPoint.main(EntryPoint.java:25) > > Caused by: java.lang.ClassNotFoundException: > org.apache.lucene.util.Version > > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:423) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:356) > > ... 5 more > > > > On Tuesday, January 14, 2014 5:22:22 PM UTC-5, Jörg Prante wrote: >> >> To get an overview what is possible, look at the Elasticsearch test >> sources at >> https://github.com/elasticsearch/elasticsearch/tree/master/src/test/java/org/elasticsearch >> >> There are many code snippets that are useful for learning how to use the >> Java API. >> >> You can use Elasticsearch by adding the jar as a dependency in your >> project (with Maven it is very easy). >> >> Jörg >> >>
-- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/43325191-02ec-4c89-b327-726725e374c9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.