Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29285

Getting error CreateProcess error=206, The filename or extension is too long when tried to build maven project

      When i tried to build my maven project, jenkins is failed to execute java program with following error.

      ERROR: Failed to parse POMs
      java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_09/bin/java" (in directory "E:\Jenkins\workspace\RemoteMonitor"): CreateProcess error=206, The filename or extension is too long

      Please check the attachment for more details and help me in getting jenkins started.

          [JENKINS-29285] Getting error CreateProcess error=206, The filename or extension is too long when tried to build maven project

          Ronald Carl added a comment -

          You can use Long Path Tool for such issue of process error-206 and also it reduce the problem of long filename or extension.It really works well.

          Ronald Carl added a comment - You can use Long Path Tool for such issue of process error-206 and also it reduce the problem of long filename or extension.It really works well.

          Barness Web added a comment -

          Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.

          Barness Web added a comment - Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.

          aiden carter added a comment -

          Long path tool is the very good program for error, unlock solution.
          Try it and solve your problem.
          I used long path tool and I solve my error, unlock problem solution.

          aiden carter added a comment - Long path tool is the very good program for error, unlock solution. Try it and solve your problem. I used long path tool and I solve my error, unlock problem solution.

          Thomas Wabner added a comment -

           ?? How will this tool help with a program which creates files and want to remove them with cmd? This is more or less the same process and the tool seems to be a click-and-do something tool with user interactions.

          Can you describe how you use the long path tool to work with jenkins? I cannot guess how this tool interacts with the java process on windows.

          A solution would be to always use escaped path's on windows to allow very deep folders or long paths. But here the maven helper plugin needs to be fixed somehow (or the path arguments)

          Thomas Wabner added a comment -  ?? How will this tool help with a program which creates files and want to remove them with cmd? This is more or less the same process and the tool seems to be a click-and-do something tool with user interactions. Can you describe how you use the long path tool to work with jenkins? I cannot guess how this tool interacts with the java process on windows. A solution would be to always use escaped path's on windows to allow very deep folders or long paths. But here the maven helper plugin needs to be fixed somehow (or the path arguments)

            Unassigned Unassigned
            ravish_nv Ravish N V
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: