java.io.IOException: Cannot run program “host”: CreateProcess error=2, The system cannot find the file specified

mkyong.com | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Try updating IDE to 1.6.12 or further.
  2. 0

    How to execute shell command from Java

    mkyong.com | 8 months ago
    java.io.IOException: Cannot run program “host”: CreateProcess error=2, The system cannot find the file specified
  3. 0

    Not able to execute an exe file from java using ProcessBuilder

    Stack Overflow | 5 years ago | Wayne Rooney
    java.io.IOException: Cannot run program "19.exe" (in directory "C:\wamp\www\usercodes\lokesh"): CreateProcess error=2, The system cannot find the file specified
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hudson cannot find powershell after update to powershell 3

    Stack Overflow | 4 years ago | George Mauer
    java.io.IOException: Cannot run program "powershell.exe" (in directory "C:\hudson\jobs\MyProject\workspace"): CreateProcess error=2, The system cannot find the file specified
  6. 0

    How to execute shell command from Java

    mkyong.com | 6 months ago
    java.io.IOException: Cannot run program “host”: CreateProcess error=2, The system cannot find the file specified

  1. rp 1 times, last 4 months ago
  2. michallos 1 times, last 5 months ago
  3. eti22 1 times, last 6 months ago
  4. asdasd 24 times, last 7 months ago
  5. rexgreenza 8 times, last 7 months ago
2 more registered users
93 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    CreateProcess error=2, The system cannot find the file specified

    at java.lang.ProcessImpl.create()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.ProcessImpl.create(Native Method)
    2. java.lang.ProcessImpl.<init>(ProcessImpl.java:188)
    3. java.lang.ProcessImpl.start(ProcessImpl.java:132)
    4. java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
    4 frames