[ https://issues.apache.org/jira/browse/ARTEMIS-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15517764#comment-15517764 ]
Jim Gomes edited comment on ARTEMIS-750 at 9/23/16 10:44 PM: ------------------------------------------------------------- This could be my environment being messed up. When I manually run that command-line from the artemis-service.log, I get a Registry key value error: {noformat} Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value '1.8', but '1.6' is required. Error: could not find java.dll Error: could not find Java SE Runtime Environment. {noformat} This is a little strange, since Artemis will run just fine. Let me fix my environment settings first. Update: I think I see the difference. If I explicitly use my JAVA_HOME defined instance (which is Java 1.8), then it will work. So, I run the following command-line (assuming all of the parameters from the log output on the command line): {noformat} "%java_home%\bin\java" "-Xbootclasspath/a:C:\Proga...." {noformat} and it will run. was (Author: jgomes): This could be my environment being messed up. When I manually run that command-line from the artemis-service.log, I get a Registry key value error: {noformat} Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value '1.8', but '1.6' is required. Error: could not find java.dll Error: could not find Java SE Runtime Environment. {noformat} This is a little strange, since Artemis will run just fine. Let me fix my environment settings first. > Artemis Windows Service Fails to Start > -------------------------------------- > > Key: ARTEMIS-750 > URL: https://issues.apache.org/jira/browse/ARTEMIS-750 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: Broker > Affects Versions: 1.4.0 > Environment: Windows 10 Anniversary Edition, 64-bit > Reporter: Jim Gomes > Priority: Blocker > Labels: service, windows > Fix For: 1.5.0 > > Attachments: errorstartingservice-screenshot.png > > > After installing Artemis as a service successfully using the following > command-line: > {{artemis-service install}} > the service returns an error when I try to start it. > # Go to the Services control panel > # select the Artemis service entry > # right click to bring up the context menu > # click the Start menu item. > It looks like it tries to start, but then an error dialog is displayed (see > attached image). When the service error log is checked, no error is logged. > The following is logged: > {noformat} > 2016-09-23 12:53:32 - Starting java "-Xbootclasspath/a:C:\Program > Files\Apache\apache-artemis-1.4.0\lib\jboss-logmanager-2.0.3.Final.jar" > -XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M > -Xmx1024M -classpath "C:\Program > Files\Apache\apache-artemis-1.4.0\lib\artemis-boot.jar" > "-Dartemis.home=C:\Program Files\Apache\apache-artemis-1.4.0" > -Dartemis.instance=C:\ProgramData\Apache\AMQ > -Djava.util.logging.manager=org.jboss.logmanager.LogManager > -Dlogging.configuration=file:C:\ProgramData\Apache\AMQ\etc\logging.properties > -Djava.security.auth.login.config=C:\ProgramData\Apache\AMQ\etc\login.config > org.apache.activemq.artemis.boot.Artemis run > 2016-09-23 12:53:32 - Started 2576 > {noformat} > When launched from the command-line (not using the service wrapper), Artemis > will launch and run just fine. -- This message was sent by Atlassian JIRA (v6.3.4#6332)