java.io.IOException: Cannot run program "java" (in directory ".\NewFolder???"): CreateProcess error=267, The directory name is invalid

JDK Bug System | David Korbel | 7 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");
  2. 0
    samebug tip
    If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Clearcase plugin for Eclipse / Discussion / Help:Exception when using quick refresh

    sourceforge.net | 2 years ago
    net.sourceforge.clearcase.ClearCaseException: i/o error (java.io.IOException: Cannot run program "cleartool" (in directory "C:\dev\views\rsteele_ws_spr2009p1_import_view\xxx\foo\bar\...\builder\BuildingException.java"): CreateProcess error=267, The directory name is invalid)
  5. 0

    Agent started via agent.bat can't upgrade if started on Windows 2008 server

    YouTrack | 7 years ago
    java.io.IOException: Cannot run program "cmd.exe" (in directory "C:\TeamCity\BuildAgent\bin"): CreateProcess error=267, The directory name is invalid

  1. PKeidel 3 times, last 5 months ago
  2. serious2monkeys 1 times, last 6 months ago
  3. Handemelindo 6 times, last 7 months ago
  4. kid 5 times, last 7 months ago
  5. rp 2 times, last 7 months ago
4 more registered users
75 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=267, The directory name is invalid

    at java.lang.ProcessImpl.create()
  2. Java RT
    Runtime.exec
    1. java.lang.ProcessImpl.create(Native Method)
    2. java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    3. java.lang.ProcessImpl.start(ProcessImpl.java:30)
    4. java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
    5. java.lang.Runtime.exec(Runtime.java:593)
    6. java.lang.Runtime.exec(Runtime.java:431)
    6 frames
  3. Unknown
    ExecGB18030.main
    1. ExecGB18030.main(ExecGB18030.java:14)
    1 frame