java.io.IOException

Cannot run program "C:\Program Files\Java\jdk1.7.0_25\jre\bin\java" (in directory "C:\Workspaces\Automation\runner"): CreateProcess error=206, The filename or extension is too long

Samebug tips2

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web24548

  • via jsystemtest by amitwer
    , 1 year ago
    Cannot run program "C:\Program Files\Java\jdk1.7.0_25\jre\bin\java" (in directory "C:\Workspaces\Automation\runner"): CreateProcess error=206, The filename or extension is too long
  • via YouTrack by Unknown author, 1 year ago
    Cannot run program "C:\Program Files\Java\jdk1.6.0_45\bin\java": CreateProcess error=206, The filename or extension is too long
  • via Stack Overflow by Unknown author, 1 year ago
    Cannot run program "C:\Program Files\Java\jdk1.6.0_45\bin\java.exe" (in directory "C:\RaiEditWorkspace-branch-2\RaiEdit"): CreateProcess error=206, The filename or extension is too long
  • Stack trace

    • java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_25\jre\bin\java" (in directory "C:\Workspaces\Automation\runner"): CreateProcess error=206, The filename or extension is too long at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) at java.lang.Runtime.exec(Runtime.java:617) at jsystem.utils.exec.Execute.execute(Execute.java:57) at jsystem.utils.exec.Execute.execute(Execute.java:21) at jsystem.runner.remote.RemoteExecutorImpl.run(RemoteExecutorImpl.java:230) at jsystem.runner.remote.ScenarioExecutor.runRound(ScenarioExecutor.java:293) at jsystem.runner.remote.ScenarioExecutor.execute(ScenarioExecutor.java:159) at jsystem.runner.agent.server.RunnerEngineImpl.run(RunnerEngineImpl.java:254) at jsystem.treeui.ExecutionWorker.doInBackground(ExecutionWorker.java:48) at jsystem.treeui.ExecutionWorker.doInBackground(ExecutionWorker.java:28) at javax.swing.SwingWorker$1.call(SwingWorker.java:296) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at javax.swing.SwingWorker.run(SwingWorker.java:335) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:376) at java.lang.ProcessImpl.start(ProcessImpl.java:136) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) ... 16 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Once, 1 week ago
    3 times, 6 months ago
    Once, 7 months ago
    6 times, 8 months ago
    142 more bugmates