-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Whitespaces in path prevent startup of openHAB #1533
Comments
I recently read the documentation about installation of openHAB for Windows and it is mentioned to not have space inside the path. |
I think it's somewhere in the bash/cmd files the path is not properly quoted which leads to the issue. |
@spacemanspiff2007 I could not reproduce your issue for |
Possibly fixes openhab#1533. Signed-off-by: Holger Friedrich <[email protected]>
Possibly fixes openhab#1533. Signed-off-by: Holger Friedrich <[email protected]>
Where have you put the space? For me it's in the last folder before the start.bat (e.g. |
This is strange. I cannot reproduce anymore. How did you start the batch files? |
I tried it with a double click in the containing folder, from a cmd shell inside the containing folder and through a python script that creates a new process which has the working dir set accordingly. I looked at setenv.bat because it does not quote the file paths when setting them as JAVA_OPTS. However when I quote them I get another error in karaf.bat which I can't resolve:
So I am not sure if this is the right approach at all. |
The really strange thing is that I cannot reproduce - even on an older win10 version - neither with Java11 nor Java17. It just works out of the box. What I have read about escaping, using I cannot help unless I manage to reproduce the problem. |
I am using Corretto and the
So you think this is a java issue and not a variable expansion issue?
Of course 🥲
That didn't work
I tried that (see post above) but then I get a different error and I don't know the commands the fix the next issue. |
To reproduce (on windows):
Download new windows snapshot of openHAB.
Extract into folder with whitespace (here
4.0 Snapshot_1
)Navigate into folder and doubleclick
start.bat
.Observe a crash of openHAB crashes with the following error message:
Replace whitespace through underscore (here
4.0_Snapshot_1
) and observe successful start.The text was updated successfully, but these errors were encountered: