[ https://issues.apache.org/jira/browse/KARAF-5908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16612300#comment-16612300 ]
Baptiste DA ROIT commented on KARAF-5908: ----------------------------------------- [~jbonofre] I think it comes from the missing quotes in karaf-wrapper.conf for windows/windows64. These quotations marks were initially present but have been deleted. I can fix this and make a PR if it's ok for you. > Service Wrapper fails to start on Windows when JAVA_HOME contains whitespace > ----------------------------------------------------------------------------- > > Key: KARAF-5908 > URL: https://issues.apache.org/jira/browse/KARAF-5908 > Project: Karaf > Issue Type: Bug > Components: karaf-os-integration > Affects Versions: 4.2.1 > Environment: Windows > Reporter: Baptiste DA ROIT > Assignee: Jean-Baptiste Onofré > Priority: Major > > Service Wrapper fails to start Karaf Service on Windows when JAVA_HOME > contains whitespace, throwing the following error: > {code:java} > Une erreur système s’est produite. > L’erreur système 1067 s’est produite. > Le processus s’est arrêté inopinément. > {code} > Following is an extract of the wrapper.log: > {code:java} > STATUS | wrapper | 2018/09/12 15:30:04 | --> Wrapper Started as Service > STATUS | wrapper | 2018/09/12 15:30:04 | Launching a JVM... > INFO | jvm 1 | 2018/09/12 15:30:04 | Erreur : impossible de trouver ou > charger la classe principale > Files\Java\jdk1.8.0_162.jre.lib.endorsed;C:\Program > ERROR | wrapper | 2018/09/12 15:30:04 | JVM exited while loading the > application.{code} > (i) Service Wrapper starts Karaf service smoothly when JAVA_HOME does not > contain any whitespace > -- This message was sent by Atlassian JIRA (v7.6.3#76005)