java.io.IOException

Cannot run program "cmd /c dir": CreateProcess error=2, The system cannot find the file specified

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 web21653

  • via Coderanch by syruss kumar, 1 year ago
    Cannot run program "cmd /c dir": CreateProcess error=2, The system cannot find the file specified
  • Cannot run program "cmd /c start /wait E:\\imageinfo.bat": CreateProcess error=2, The system cannot find the file specified
  • via hivmr.com by Unknown author, 1 year ago
    Cannot run program "cmd /c "rep_cmd log.wgl" -text "log1.txt"": CreateProcess error=2, The system cannot find the file specified
  • Stack trace

    • java.io.IOException: Cannot run program "cmd /c dir": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at com.java.language.ExploreRuntimeProcess.executeProcess(ExploreRuntimeProcess.java:15) at com.java.language.ExploreRuntimeProcess.main(ExploreRuntimeProcess.java:25) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 5 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, 1 year ago
    Unknown user
    Once, 9 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    142 more bugmates