Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/transport/Netty4Plugin
at org.elasticsearch.transport.client.PreBuiltTransportClient.<clinit>(PreBuiltTransportClient.java:78)
at ElasticsSearchUtil.cilentFactory(ElasticsSearchUtil.java:54)
at ElasticsSearchUtil.main(ElasticsSearchUtil.java:70)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.transport.Netty4Plugin
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
参考错误分析: