johannes übleis created NIFI-7926:
-------------------------------------
Summary: Nifi-Toolkit .bat files not working under "Program Files"
Key: NIFI-7926
URL: https://issues.apache.org/jira/browse/NIFI-7926
Project: Apache NiFi
Issue Type: Bug
Components: Tools and Build
Affects Versions: 1.12.1
Environment: Windows 10, Windows Server 2019 Standard
Reporter: johannes übleis
The nifi-toolkit .bat files seems to not be able to handle the path properly
when the toolkit is saved under "Program Files" path or subdirectory of
"Program FIles". The space in the path seems to not be properly escaped and
results in the following error:
Example:
{noformat}
C:\Program Files\test\nifi-toolkit-1.12.0\bin>cli.bat
The JAVA_HOME environment variable is not defined correctly.
Instead the PATH will be used to find the java executable.{noformat}
{noformat}
Error: Could not find or load main class
Files\test\nifi-toolkit-1.12.0\bin\..\classpath;C:\Program{noformat}
{noformat}
C:\Program Files\test\nifi-toolkit-1.12.0\bin>{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)