java.io.IOException

tip

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • How to execute shell command from Java
    via by Unknown author,
  • 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?
    via by James Nord,
  • 验证码的OCR方式识别 - ykf - ITeye技术网站
    via by Unknown author,
  • 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?
    via by James Nord,
  • How to execute shell command from Java
    via by Unknown author,
  • GitHub comment 1251#167509396
    via GitHub by mikecrean
    ,
    • java.io.IOException: Cannot run program “host”: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at java.lang.Runtime.exec(Runtime.java:593) at java.lang.Runtime.exec(Runtime.java:431) at java.lang.Runtime.exec(Runtime.java:328) at javaClasses.ExecuteShellCommand.main(ExecuteShellCommand.java:37) 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    160 more bugmates