Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
来源:互联网 发布:vscode php注释插件 编辑:程序博客网 时间:2024/04/30 13:18
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/elasticsearch/bootstrap/Elasticsearch : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
原因是,elasticsearch需要jdk为1.7,但系统中java版本为1.6。
转自:http://blog.csdn.net/sdlyjzh/article/details/43966031
- Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
- Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
- Could not find the main class: org.apache.spark.launcher.Main. Program will exit.
- Could not find the main class. Program will exit
- could not find the main class. Program will exit.
- Could not find the main class. Program will exit...
- Could not find the main class. Program will exit
- Could not find the main class.Program will exit.
- Could not find the main class. Program will exit.
- junit:could not find the main class Program will exit
- [Eclipse] Could not find the main class. Program will exit
- could not find the main class : program will exit
- Could not find the main class. Program will exit
- 【解决方法】Could not find the main class Program will exit
- Could not find the main class Program will exit
- Could not find the main class: *****.Program will exit
- Could not find the main class. Program will exit.
- Could not find the main class ***.Program will exit
- 【C++11新特性】 C++11智能指针之shared_ptr
- java 发送邮件(并添加附件)
- 全排序(All Rangled)
- Java 上传文件到ftp服务器
- 简单使用 Wireshark
- Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
- 数组初始化
- 【专题小结】数据结构
- php语言,如何用html代码输出一个网页ob_start&&ob_end_flush
- python中__getattr__()和__getattribute__()方法的区别
- 直接通过ADO操作Access数据库(修改版)
- android设置activity全屏 | 无标题
- VMare虚拟机突破锐捷多网卡限制,成功联网
- Oracle 11g 修改中文字符集