I started a new Java project. I'm using the elasticsearch-2.0.0.jar file, included it in my project, and the guava-18.0.jar file. I did not do any other configurations.
I'm using Elasticsearch 2.0.0 and it is running on localhost port 9200. The following is my Java code, all I'm trying to do is create a client:
Nov 26, 2015 2:39:42 PM org.elasticsearch.plugins.PluginsService <init>
INFO: [Hydro] loaded [], sites []
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/util/Version
at org.elasticsearch.Version.<clinit>(Version.java:44)
at org.elasticsearch.client.transport.TransportClient$Builder.build(TransportClient.java:117)
......
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:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 4 more
Java Result: 1
I prefer using a Java project and not a Maven project because I dont have any experience with Maven. Please let me know which jar files that I need??
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.