java程序启动报错:
Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/plugins/NetworkPlugin
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
原因:
1、JDK1.8及以上;
2、不仅要使用org.elasticsearch.client包,也要使用elasticsearch-5.2.2包;
3、使用org.apache.logging.log4j日志包