You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Ward (Jira)" <ji...@apache.org> on 2021/06/24 09:47:00 UTC

[jira] [Created] (NIFI-8734) NiFi Toolkit .bat breaks with paths containing spaces

Mark Ward created NIFI-8734:
-------------------------------

             Summary: NiFi Toolkit .bat breaks with paths containing spaces
                 Key: NIFI-8734
                 URL: https://issues.apache.org/jira/browse/NIFI-8734
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 1.13.2
         Environment: Windows Server 2019 1809 (Win 10), PowerShell 5.1, Oracle JRE 1.8. 291
            Reporter: Mark Ward


I'm using PowerShell on Windows Server 2019 with Java 1.8, and the following command run from the "nifi-toolkit-1.13.2" directory:
{code:java}
cd 'C:\Program Files\Apache\NiFi Toolkit\nifi-toolkit-1.13.2\'{code}
 
{code:java}
.\bin\tls-toolkit.bat standalone -h
{code}
returns:

 

 

 
{code:java}
Error: Could not find or load main class Files\Apache\NiFi
{code}
I believe the issue lies with spaces in the path where toolkit is located and if I alter this line in the tls-toolkit.bat:

 

 
{code:java}
SET JAVA_PARAMS=-cp %LIB_DIR%\* %JAVA_OPTS% org.apache.nifi.toolkit.tls.TlsToolkitMain
{code}
to include double quotes around the %LIB_DIR% variable:

 

 
{code:java}
SET JAVA_PARAMS=-cp "%LIB_DIR%\*" %JAVA_OPTS% org.apache.nifi.toolkit.tls.TlsToolkitMain{code}
 

It works as expected.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)