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

javaknowledge.info | 4 months ago
  1. 0

    maven error while running sonar from hudson job

    Stack Overflow | 4 years ago | yathirigan
    java.io.IOException: Cannot run program "mvn.bat" (in directory "D:\Users\abcd\.hudson\jobs\QA Build Local\workspace\view"): CreateProcess error=2, The system cannot find the file specified
  2. 0

    How to execute shell command from Java

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

    Bug 136131 – A org.netbeans.modules.clearcase.ClearcaseUnavailableException exception has occurred

    netbeans.org | 11 months ago
    java.io.IOException: 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

    Auto install of JDK 1.6.0 Update 21 fails on Windows 7. The download completes but is saved without a .exe extension then Hudson appears to try to install it using the eventual path not the downloaded path. {noformat} Started by user anonymous Updating https://svn.java.net/svn/hudson~svn/trunk/hudson/plugins/m2release/test At revision 37425 no change for https://svn.java.net/svn/hudson~svn/trunk/hudson/plugins/m2release/test since the previous build Choosing the download bundle Downloading file:/C:/work/hudson_test_install/Home/cache/jdks/WINDOWS/i386/jdk-6u21-oth-JPR@CDS-CDS_Developer Installing C:\work\hudson_test_install\Home\tools\jdk1.6.0_21\jdk.exe [jdk1.6.0_21] $ C:\work\hudson_test_install\Home\tools\jdk1.6.0_21\jdk.exe /s '/v/qn REBOOT=Suppress INSTALLDIR=\"C:\work\hudson_test_install\Home\tools\jdk1.6.0_21\" /L \"C:\work\hudson_test_install\Home\tools\jdk1.6.0_21\jdk.exe.install.log\"' Parsing POMs [workspace] $ C:\work\hudson_test_install\Home\tools\jdk1.6.0_21/bin/java -cp C:\work\hudson_test_install\Home\plugins\maven-plugin\WEB-INF\lib\maven-agent-1.389.jar;C:\work\hudson_test_install\Home\tools\maven_2.2.1\boot\classworlds-1.1.jar hudson.maven.agent.Main C:\work\hudson_test_install\Home\tools\maven_2.2.1 C:\work\hudson_test_install\Home\war\WEB-INF\lib\remoting-1.389.jar C:\work\hudson_test_install\Home\plugins\maven-plugin\WEB-INF\lib\maven-interceptor-1.389.jar 50538 C:\work\hudson_test_install\Home\plugins\maven-plugin\WEB-INF\lib\maven2.1-interceptor-1.2.jar ERROR: Failed to parse POMs java.io.IOException: Cannot run program "C:\work\hudson_test_install\Home\tools\jdk1.6.0_21/bin/java" (in directory "C:\work\hudson_test_install\Home\jobs\test\workspace"): CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.maven.MavenProcessFactory.newProcess(MavenProcessFactory.java:216) at hudson.maven.ProcessCache.get(ProcessCache.java:231) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:502) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) at hudson.model.Run.run(Run.java:1337) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:349) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:140) 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>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) ... 12 more Finished: FAILURE {noformat} It appears it tries to exectute the following command to install the JDK {noformat}C:\work\hudson_test_install\Home\tools\jdk1.6.0_21\jdk.exe /s '/v/qn REBOOT=Suppress INSTALLDIR=\"C:\work\hudson_test_install\Home\tools\jdk1.6.0_21\" /L \"C:\work\hudson_test_install\Home\tools\jdk1.6.0_21\jdk.exe.install.log\"'{noformat} but C:\work\hudson_test_install\Home\tools\jdk1.6.0_21\jdk.exe is not the installer that it downloaded but where it should be installed to?

    Jenkins JIRA | 6 years ago | James Nord
    java.io.IOException: Cannot run program "C:\work\hudson_test_install\Home\tools\jdk1.6.0_21/bin/java" (in directory "C:\work\hudson_test_install\Home\jobs\test\workspace"): CreateProcess error=2, The system cannot find the file specified
  6. 0

    验证码的OCR方式识别 - ykf - ITeye技术网站

    iteye.com | 4 months ago
    java.io.IOException: Cannot run program "E:\workspace\workspace_image\image\tesseract\tesseract" (in directory "E:\workspace\workspace_image\imgpro\test"): CreateProcess error=2, The system cannot find the file specified

  1. eti22 1 times, last 1 month ago
  2. asdasd 24 times, last 3 months ago
  3. rexgreenza 8 times, last 3 months ago
  4. Benj-AD 1 times, last 4 months ago
  5. Akshay 4 times, last 6 months ago
95 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:81)
    3. java.lang.ProcessImpl.start(ProcessImpl.java:30)
    4. java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
    4 frames