activemq.bat 在window7 x64下启动(安装)报错解决方案

时间:2022-01-17 20:23:40

在启动  apache-activemq-5.15.2/activemq.bat  时候报错,提示以下信息:

wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | WrapperSimpleApp: Unable to locate the class org.apache.activemq.cons
ole.Main: java.lang.UnsupportedClassVersionError: org/apache/activemq/console/Ma
in : Unsupported major.minor version 52.0
jvm 1 |
jvm 1 | WrapperSimpleApp Usage:
jvm 1 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_a
rguments]
jvm 1 |
jvm 1 | Where:
jvm 1 | app_class: The fully qualified class name of the application t
o run.
jvm 1 | app_arguments: The arguments that would normally be passed to the
jvm 1 | application.
wrapper | <-- Wrapper Stopped
请按任意键继续. . .

activemq.bat 在window7 x64下启动(安装)报错解决方案

出现这个问题的原因主要是我安装的jdk1.7版本的,我用的apache-activemq-5.15.2  ,这个版本的activeMQ 要用jdk1.8,

运行activemq.bat 成功后提示:

wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | Java Runtime: Oracle Corporation 1.8.0_152 C:\Program Files\Java\jdk1
.8.0_152\jre
jvm 1 | Heap sizes: current=125952k free=115962k max=932352k
jvm 1 | JVM args: -Dactivemq.home=../.. -Dactivemq.base=../.. -Djavax.net
.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djav
ax.net.ssl.keyStore=../../conf/broker.ks -Djavax.net.ssl.trustStore=../../conf/b
roker.ts -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRu
nner=true -Djava.util.logging.config.file=logging.properties -Dactivemq.conf=../
../conf -Dactivemq.data=../../data -Djava.security.auth.login.config=../../conf/
login.config -Xmx1024m -Djava.library.path=../../bin/win64 -Dwrapper.key=BWq1Owb
xFRTlG75B -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.m
ax=31999 -Dwrapper.pid=16432 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wr
apper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
jvm 1 | Extensions classpath:
jvm 1 | [..\..\lib,..\..\lib\camel,..\..\lib\optional,..\..\lib\web,..\..\l
ib\extra]
jvm 1 | ACTIVEMQ_HOME: ..\..
jvm 1 | ACTIVEMQ_BASE: ..\..
jvm 1 | ACTIVEMQ_CONF: ..\..\conf
jvm 1 | ACTIVEMQ_DATA: ..\..\data
jvm 1 | Loading message broker from: xbean:activemq.xml
jvm 1 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@742
40fe9: startup date [Wed Nov 22 10:34:02 CST 2017]; root of context hierarchy
jvm 1 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[E:\中_个
人开发者\消息队列\apache-activemq-5.15.2-bin\apache-activemq-5.15.2\bin\win64\..
\..\data\kahadb]
jvm 1 | INFO | PListStore:[E:\中_个人开发者\消息队列\apache-activemq-5.15.2-
bin\apache-activemq-5.15.2\bin\win64\..\..\data\localhost\tmp_storage] started
jvm 1 | INFO | Apache ActiveMQ 5.15.2 (localhost, ID:DOS-PC-39028-1511318049
286-0:1) is starting
jvm 1 | INFO | Listening for connections at: tcp://DOS-PC:61616?maximumConne
ctions=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector openwire started
jvm 1 | INFO | Listening for connections at: amqp://DOS-PC:5672?maximumConne
ctions=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector amqp started
jvm 1 | INFO | Listening for connections at: stomp://DOS-PC:61613?maximumCon
nections=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector stomp started
jvm 1 | INFO | Listening for connections at: mqtt://DOS-PC:1883?maximumConne
ctions=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector mqtt started
jvm 1 | WARN | ServletContext@o.e.j.s.ServletContextHandler@1d32255a{/,null,
STARTING} has uncovered http methods for path: /
jvm 1 | INFO | Listening for connections at ws://DOS-PC:61614?maximumConnect
ions=1000&wireFormat.maxFrameSize=104857600
jvm 1 | INFO | Connector ws started
jvm 1 | INFO | Apache ActiveMQ 5.15.2 (localhost, ID:DOS-PC-39028-1511318049
286-0:1) started
jvm 1 | INFO | For help or more information please see: http://activemq.apac
he.org
jvm 1 | WARN | Store limit is 102400 mb (current store usage is 0 mb). The d
ata directory: E:\中_个人开发者\消息队列\apache-activemq-5.15.2-bin\apache-activ
emq-5.15.2\bin\win64\..\..\data\kahadb only has 81473 mb of usable space. - rese
tting to maximum available disk space: 81473 mb
jvm 1 | INFO | No Spring WebApplicationInitializer types detected on classpa
th
jvm 1 | INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
jvm 1 | INFO | ActiveMQ Jolokia REST API available at http://0.0.0.0:8161/ap
i/jolokia/
jvm 1 | INFO | Initializing Spring FrameworkServlet 'dispatcher'
jvm 1 | INFO | No Spring WebApplicationInitializer types detected on classpa
th
jvm 1 | INFO | jolokia-agent: Using policy access restrictor classpath:/jolo
kia-access.xml

 

启动成功之后浏览器输入:http://127.0.0.1:8161/admin/  默认账号密码是:admin/admin,到此为止,就安装ActiveMQ成功啦!

activemq.bat 在window7 x64下启动(安装)报错解决方案