ActiveMQ not running
Today, ActiveMQ installed Linux system in a virtual machine, and found not start, check the status of discovery is ActiveMQ not running.
[root@localhost bin]# ./activemq start
INFO: Loading '/root/Desktop/apache-activemq-5.15.8//bin/env'
INFO: Using java '/usr/local/src/java/jdk1.7.0_71/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/root/Desktop/apache-activemq-5.15.8//data/activemq.pid' (pid '4809')
[root@localhost bin]# ./activemq status
INFO: Loading '/root/Desktop/apache-activemq-5.15.8//bin/env'
INFO: Using java '/usr/local/src/java/jdk1.7.0_71/bin/java'
ActiveMQ not running
[root@localhost bin]#
Then run in activemq directory ./bin/activemq console will be started in debug mode and log output to the current page.
[root@localhost apache-activemq-5.15.8]# ./bin/activemq console
INFO: Loading '/root/Desktop/apache-activemq-5.15.8//bin/env'
INFO: Using java '/usr/local/src/java/jdk1.7.0_71/bin/java'
INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
INFO: Creating pidfile /root/Desktop/apache-activemq-5.15.8//data/activemq.pid
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/activemq/console/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Unsupported major.minor version 52.0 find this error, the online version is checked and found the problem, I got the latest version of apache-activemq-5.15.8, and my virtual machine installed the jdk version is 1.7; so go download activemq the old version installed just fine. I downloaded apache-activemq-5.12.0 version is installed again and found that you can successfully start after installed, ActiveMQ is running.
[root@localhost bin]# ./activemq start
INFO: Loading '/root/Desktop/apache-activemq-5.12.0//bin/env'
INFO: Using java '/usr/local/src/java/jdk1.7.0_71/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/root/Desktop/apache-activemq-5.12.0//data/activemq.pid' (pid '5283')
[root@localhost bin]# ./activemq status
INFO: Loading '/root/Desktop/apache-activemq-5.12.0//bin/env'
INFO: Using java '/usr/local/src/java/jdk1.7.0_71/bin/java'
ActiveMQ is running (pid '5283')