查看ActiveMQ版本:

ActiveMQ 5.8.0

现在我们需要升级到:

Version

5.14.0

 官网下载:

http://activemq.apache.org/activemq-5140-release.html


启动报错:

 

Exception in 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)

at java.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/验证