Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7926

Nifi-Toolkit .bat files not working under "Program Files"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.12.1
    • Fix Version/s: None
    • Component/s: Tools and Build
    • Labels:
      None
    • Environment:
      Windows 10, Windows Server 2019 Standard

      Description

      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:

      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.
      Error: Could not find or load main class Files\test\nifi-toolkit-1.12.0\bin\..\classpath;C:\Program
      C:\Program Files\test\nifi-toolkit-1.12.0\bin>

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              uejo johannes übleis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: