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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

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

,
Expert tip

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

Solutions on the web

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 Stack Overflow by Mirko N.
, 1 year ago
Cannot run program [external program]: java.io.IOException: error=24, Too many open files
via stackexchange.com by Unknown author, 1 year ago
Cannot run program "C:\Program Files\Java\jdk1.7.0_79\bin\b in\jarsigner.exe" (in directory "."): CreateProcess error=2, The system cannot f ind the file specified
via Oracle Community by 785123, 1 year ago
Cannot run program ""D:\OracleFusionMiddleware\Oracle_BI1\j dk\bin\java"" (in directory "D:\OracleFusionMiddleware\utils\uninstall\WebLogic_ Platform_10.3.5.0"): CreateProcess error=2, The system cannot find the file spec ified
via Oracle Community by Moumita C, 1 year ago
Cannot run program "C:\Users\MOUMIT~1\AppData\Local\Temp\ismp001\LauncherMain.exe": CreateProcess error=740, The requested operation requires elevation
via Stack Overflow by Horotho
, 2 years ago
Cannot run program "recompile.bat" (in directory "C:\Users\Aaron\Documents\MinecraftForge\forge\mcp"): CreateProcess error=2, The system cannot find the file specified
java.io.IOException: CreateProcess error=206, The filename or extension is too long
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:376)
at java.lang.ProcessImpl.start(ProcessImpl.java:136)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
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)

Users with the same issue

Once, 1 month ago
Once, 3 months ago
3 times, 6 months ago
Once, 1 year ago
5 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.