Ive been searching a lot and i couldn't figure out why, my java is properly installed. And the environment property is correct too.
我已经搜索了很多,但我不知道为什么,我的java安装得很好。环境属性也是正确的。
Trying to install the ActiveMQ in Windows 7 64bit. This is the ActiveMQ 5.8.0.
尝试安装ActiveMQ在Windows 7 64位。这是ActiveMQ 5.8.0。
So with Administrator Cmd i run the bat inside Win64 "InstallService.bat", installs it. But when i try to start it using "net start activemq" it throws an error related to the java.command in the wrapper.conf.
因此,使用管理员Cmd,我在Win64 "InstallService中运行bat。蝙蝠”,安装它。但是,当我尝试使用“net start activemq”启动它时,它会在wrapper.conf中抛出与java.command相关的错误。
STATUS | wrapper | 2013/07/29 13:00:10 | Launching a JVM...
FATAL | wrapper | 2013/07/29 13:00:10 | Unable to execute Java command. The system cannot find the file specified. (0x2)
FATAL | wrapper | 2013/07/29 13:00:10 | "%JAVA_HOME%\bin\java.exe" -Dactivemq.home="C:\apache-activemq-5.8.0\bin\win64\..\.." -Dactivemq.base="C:\apache-activemq-5.8.0\bin\win64\..\.." -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore="C:\apache-activemq-5.8.0\bin\win64\..\../conf/broker.ks" -Djavax.net.ssl.trustStore="C:\apache-activemq-5.8.0\bin\win64\..\../conf/broker.ts" -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dactivemq.conf="C:\apache-activemq-5.8.0\bin\win64\..\../conf" -Dactivemq.data="C:\apache-activemq-5.8.0\bin\win64\..\../data" -Xmx1024m -Djava.library.path="C:\apache-activemq-5.8.0\bin\win64\..\../bin/win64" -classpath "C:\apache-activemq-5.8.0\bin\win64\..\../bin/wrapper.jar;C:\apache-activemq-5.8.0\bin\win64\..\../bin/activemq.jar" -Dwrapper.key="b0Z3zqiLBNs16vNL" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=8120 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.apache.activemq.console.Main start
FATAL | wrapper | 2013/07/29 13:00:10 | Critical error: wait for JVM process failed
Do you know what's wrong? :/
你知道怎么回事吗?:/
These are the wrapper properties in the wrapper.conf file
这些是包装器中的包装器属性。配置文件
#********************************************************************
# Wrapper Properties
#********************************************************************
# wrapper.debug=TRUE
set.default.ACTIVEMQ_HOME=%ACTIVEMQ_HOME%
set.default.ACTIVEMQ_BASE=%ACTIVEMQ_BASE%
set.default.ACTIVEMQ_CONF=%ACTIVEMQ_BASE%/conf
set.default.ACTIVEMQ_DATA=%ACTIVEMQ_BASE%/data
wrapper.working.dir=.
# Java Application
wrapper.java.command=%JAVA_HOME%/bin/java.exe
Thanks.
谢谢。
2 个解决方案
#1
1
I had the same issue.
我也有同样的问题。
I had to uninstall the ActiveMQ.
我不得不卸载ActiveMQ。
Updating the wrapper.config file in both the Win32 and Win64
更新包装器。Win32和Win64中的配置文件
wrapper.java.command=%JAVA_HOME%/bin/java.exe
wrapper.java.command = % JAVA_HOME % / bin / java.exe
installing the ActiveMQ and then running the service from service.msc got it working
安装ActiveMQ,然后从服务运行服务。msc找到了工作
#2
0
Take the \bin off of your JAVA_HOME
把你的JAVA_HOME去掉
%JAVA_HOME%\bin\java.exe
% JAVA_HOME % \ bin \ java.exe
The script is adding it.
脚本正在添加它。
Try some of the troubleshooting here. Perhaps your version of the jdk is not compatible.
在这里尝试一些疑难解答。也许您的jdk版本不兼容。
https://confluence.atlassian.com/pages/viewpage.action?pageId=238617797
https://confluence.atlassian.com/pages/viewpage.action?pageId=238617797
#1
1
I had the same issue.
我也有同样的问题。
I had to uninstall the ActiveMQ.
我不得不卸载ActiveMQ。
Updating the wrapper.config file in both the Win32 and Win64
更新包装器。Win32和Win64中的配置文件
wrapper.java.command=%JAVA_HOME%/bin/java.exe
wrapper.java.command = % JAVA_HOME % / bin / java.exe
installing the ActiveMQ and then running the service from service.msc got it working
安装ActiveMQ,然后从服务运行服务。msc找到了工作
#2
0
Take the \bin off of your JAVA_HOME
把你的JAVA_HOME去掉
%JAVA_HOME%\bin\java.exe
% JAVA_HOME % \ bin \ java.exe
The script is adding it.
脚本正在添加它。
Try some of the troubleshooting here. Perhaps your version of the jdk is not compatible.
在这里尝试一些疑难解答。也许您的jdk版本不兼容。
https://confluence.atlassian.com/pages/viewpage.action?pageId=238617797
https://confluence.atlassian.com/pages/viewpage.action?pageId=238617797