When trying to launch Camunda Run (via start.bat) with a JDK used that is located in a folder with spaces in its path (e.g. "C:\Program Files\Eclipse Adoptium\jdk-21.0.2.13-hotspot") the application doesn't successfully start. Instead the following error popup shows up:
Steps to reproduce
Install a JDK into a folder with spaces in it
Download & extract a fresh copy of Camunda Run
Try to launch Camunda Run via start.bat.
Observed Behavior
The application doesn't successfully launch. Instead an error popup is shown.
Expected behavior
Camunda Run should launch without any errors using a JDK that is located in a folder with spaces in its path.
Solution Ideas
Wrapping the argument details (%JAVA%) in quotation marks (lines 150 + 153) seems to fix the problem. Example:
Environment
7.20.4-ee Microsoft Windows 10 Pro (Build 19045)
Description
When trying to launch Camunda Run (via start.bat) with a JDK used that is located in a folder with spaces in its path (e.g. "C:\Program Files\Eclipse Adoptium\jdk-21.0.2.13-hotspot") the application doesn't successfully start. Instead the following error popup shows up:
Steps to reproduce
Observed Behavior
The application doesn't successfully launch. Instead an error popup is shown.
Expected behavior
Camunda Run should launch without any errors using a JDK that is located in a folder with spaces in its path.
Solution Ideas
Wrapping the argument details (%JAVA%) in quotation marks (lines 150 + 153) seems to fix the problem. Example:
start "%APPNAME%" "%JAVA%" -Dloader.path="%classPath%" -Dcamunda.deploymentDir="%DEPLOYMENTDIR%" %JAVA_OPTS% -jar "%BASEDIR%camunda-bpm-run-core.jar" --spring.config.location=file:"%configuration%"