activemq升级报错
查看ActiveMQ版本:
ActiveMQ5.8.0
现在我们需要升级到:
Version
5.14.0
官网下载:
http://activemq.apache.org/activemq-5140-release.html
启动报错:
Exceptionin thread "main" java.lang.UnsupportedClassVersionError:org/apache/activemq/console/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
atjava.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class:org.apache.activemq.console.Main. Program will exit.
原因是jdk版本过低,解决方法是:直接在activemq文件里面定义java_home路径就可以了
http://127.0.0.1:8161/登录验证
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。