Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service-wrapper unable to handle spaces in Java path #830

Closed
gusarov opened this issue Dec 21, 2018 · 6 comments · Fixed by #834
Closed

service-wrapper unable to handle spaces in Java path #830

gusarov opened this issue Dec 21, 2018 · 6 comments · Fixed by #834
Labels

Comments

@gusarov
Copy link

gusarov commented Dec 21, 2018

I just installed OpenHAB as a Windows Service following instructions (service-wrapper)
The wrapper.log file clearly indicates that service wrapper unable to handle spaces in path.
Java is installed by default in default location, so, it contains spaces.

STATUS | wrapper | 2018/12/21 22:18:20 | openHAB2 installed.
STATUS | wrapper | 2018/12/21 22:19:31 | --> Wrapper Started as Service
STATUS | wrapper | 2018/12/21 22:19:31 | Launching a JVM...
INFO | jvm 1 | 2018/12/21 22:19:31 | Error: Could not find or load main class Files\Java\jre1.8.0_191.jre.lib.endorsed;c:\Program
ERROR | wrapper | 2018/12/21 22:19:31 | JVM exited while loading the application.

@wborn
Copy link
Member

wborn commented Dec 21, 2018

I read a few days ago it's a known Karaf issue KARAF-5908 and fixed in Karaf 4.2.2.

@wborn wborn added the karaf label Dec 21, 2018
@AngelosF
Copy link
Member

The instructions here: https://www.openhab.org/docs/installation/windows.html include double quotes for the Java Parameters but not for Wrapper Properties and Java Application.

Maybe we should add them?

I will test this also on a Win 10 system.

Oh 2.4.0 Stable I assume?

@gusarov
Copy link
Author

gusarov commented Dec 30, 2018

I've download http://www.apache.org/dyn/closer.lua/karaf/4.2.2/apache-karaf-4.2.2.zip
and replaced the content of "openHab\Runtime" content with this zip archive content.
Service is not starting, still the same error in log.

@gusarov
Copy link
Author

gusarov commented Dec 30, 2018

I've tried all combinations of quotes and backslash in java_home
if I remove tailing slash, there is another error:
Error: Could not find or load main class org.apache.karaf.wrapper.internal.service.Main

@wborn
Copy link
Member

wborn commented Dec 30, 2018

Did you also give the new Karaf 4.2.2 based snapshot a try openhab-2.5.0-SNAPSHOT.zip?

@gusarov
Copy link
Author

gusarov commented Dec 30, 2018

Just tried - still the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants