java.io.IOException: Cannot run program "C:\Windows\TEMP\hudson6840666181877118834.js" (in directory "C:\Program Files (x86)\Jenkins\jobs\NodeJs\workspace"): CreateProcess error=193, %1 is not a valid Win32 application

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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.

  • Using the instructions provided, I setup the plugin locally and point it to my existing installation of NodeJs (since it is a windows machine). I then setup my job to use an execute script to get my node version, which works. When I add a execute nodejs script to my build with this in it: var sys = require('sys'); sys.puts('build number:' + process.env['BUILD_NUMBER']); sys.puts('current directory: ' + process.cwd()); I get this error when I run the job: Building in workspace C:\Program Files (x86)\Jenkins\jobs\NodeJs\workspace [workspace] $ sh -xe C:\Windows\TEMP\hudson3559847244933178029.sh + node --version v0.10.26 [workspace] $ C:\Windows\TEMP\hudson6840666181877118834.js %1 is not a valid Win32 application FATAL: command execution failed java.io.IOException: Cannot run program "C:\Windows\TEMP\hudson6840666181877118834.js" (in directory "C:\Program Files (x86)\Jenkins\jobs\NodeJs\workspace"): CreateProcess error=193, %1 is not a valid Win32 application at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) at jenkins.plugins.nodejs.tools.DecoratedLauncher.launch(DecoratedLauncher.java:49) at jenkins.plugins.nodejs.tools.NpmPackagesBuildWrapper$2.launch(NpmPackagesBuildWrapper.java:88) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$ProcStarter.join(Launcher.java:360) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:84) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:42) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) at hudson.model.Run.execute(Run.java:1670) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 19 more Build step 'Execute NodeJS script' marked build as failure Finished: FAILURE
    via by Jesse Sanders,
  • Using the instructions provided, I setup the plugin locally and point it to my existing installation of NodeJs (since it is a windows machine). I then setup my job to use an execute script to get my node version, which works. When I add a execute nodejs script to my build with this in it: var sys = require('sys'); sys.puts('build number:' + process.env['BUILD_NUMBER']); sys.puts('current directory: ' + process.cwd()); I get this error when I run the job: Building in workspace C:\Program Files (x86)\Jenkins\jobs\NodeJs\workspace [workspace] $ sh -xe C:\Windows\TEMP\hudson3559847244933178029.sh + node --version v0.10.26 [workspace] $ C:\Windows\TEMP\hudson6840666181877118834.js %1 is not a valid Win32 application FATAL: command execution failed java.io.IOException: Cannot run program "C:\Windows\TEMP\hudson6840666181877118834.js" (in directory "C:\Program Files (x86)\Jenkins\jobs\NodeJs\workspace"): CreateProcess error=193, %1 is not a valid Win32 application at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) at jenkins.plugins.nodejs.tools.DecoratedLauncher.launch(DecoratedLauncher.java:49) at jenkins.plugins.nodejs.tools.NpmPackagesBuildWrapper$2.launch(NpmPackagesBuildWrapper.java:88) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$ProcStarter.join(Launcher.java:360) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:84) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:42) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) at hudson.model.Run.execute(Run.java:1670) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 19 more Build step 'Execute NodeJS script' marked build as failure Finished: FAILURE
    via by Jesse Sanders,
  • ClearCase Plugin - hudson - Hudson Wiki
    via by Unknown author,
  • ClearCase Plugin - Jenkins - Jenkins Wiki
    via by Unknown author,
  • I am just starting to set up Hudson to work with ClearCase and I am getting the following console output when I build: Started by user anonymous [IFC] $ cleartool startview tla_vu [IFC] $ cleartool catcs -tag tla_vu element * CHECKEDOUT element * .../tla_dev/LATEST element * /main/LATEST -mkbranch tla_dev [tla_vu] cleartool lshistory -r -since 23-apr-09.18:05:56utc+0000 -fmt '\"%N\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \n%c\n' -nco M:\tla_vu\files FATAL: CreateProcess: cleartool lshistory -r -since 23-apr-09.18:05:56utc+0000 -fmt "\"%N\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \n%c\n" -nco M:\tla_vu\files error=267 java.io.IOException: CreateProcess : cleartool lshistory -r -since 23-apr-09.18:05:56utc+0000 -fmt "\"%N\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \n%c\n" -nco M:\tla_vu\files error=267 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:451) at hudson.Proc$LocalProc.<init>(Proc.java:132) at hudson.Proc$LocalProc.<init>(Proc.java:110) at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:359) at hudson.Launcher$LocalLauncher.launch(Launcher.java:342) at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:66) at hudson.plugins.clearcase.ClearToolExec.lshistory(ClearToolExec.java:64) at hudson.plugins.clearcase.history.AbstractHistoryAction.runLsHistory(AbstractHistoryAction.java:57) at hudson.plugins.clearcase.history.AbstractHistoryAction.getChanges(AbstractHistoryAction.java:43) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:274) at hudson.model.AbstractProject.checkout(AbstractProject.java:808) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:899) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) I'm not sure what the problem is, but I noticed that the format passed with the "-fmt" tag is enclosed with single quotes (') on the output line that start with [tla_vu] and double quotes (") on the two error lines. If I copy and paste the lshistory command with the double quotes into a cmd window, the command runs properly. If I use the command with the single quotes, I get the following error: cleartool: Error: Unable to access ""%u"": Filename too long. cleartool: Error: Unable to access ""%En"": Filename too long. cleartool: Error: Unable to access ""%Vn"": Filename too long. cleartool: Error: Unable to access ""%e"": Filename too long. cleartool: Error: Unable to access ""%o"": Filename too long. cleartool: Error: Unable to access "\n%c\n'": ClearCase object not found. cleartool: Error: Unable to access "-nco": No such file or directory I am having the same problem with versions 0.8.1 and 0.8.2 of the plugin. Thanks for making such a great (and free) tool. Any help would be appreciated. Thanks. -Stuart
    via by tla612,
  • project is UCM - and we are using an existing dynamic view. This project is ClearQuest integrated. started [workspace] $ cleartool startview hudson_ETS_FIRMSOFT6.0_int [hudson_ETS_FIRMSOFT6.0_int] $ cleartool chstream -generate stream:ETS_FIRMSOFT6.0_integration@/cc/ETS_GFIXCCM_PROJECT Changed stream "stream:ETS_FIRMSOFT6.0_integration@/cc/ETS_GFIXCCM_PROJECT". [workspace] $ cleartool setcs -tag hudson_ETS_FIRMSOFT6.0_int -stream [hudson_ETS_FIRMSOFT6.0_int] $ cleartool lshistory -r -since 5-mar.13:30:58 - fmt '\"%Nd\" \"%En\" \"%Vn\" \"%[activity]p\" \"%e\" \"%o\" \n%c\n' -branch brtype:ETS_FIRMSOFT6.0_integration - nco /view/hudson_ETS_FIRMSOFT6.0_int/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT "20090305.142932" "/view/hudson_ETS_FIRMSOFT6.0_int/cc/ETS_FIRMSOFT_SOURCE/FIRMS OFT/firmsoft- web/src/site/fml/faq.fml" "/main/ETS_FIRMSOFT6.0_integration/2" "CQPRD00205213" "create version" "checkin" [hudson_ETS_FIRMSOFT6.0_int] $ cleartool lsactivity -fmt '\"%[headline]p\" \"% [stream]p\" \"%u\" \n' CQPRD00205213 FATAL: Cannot run program "cleartool" (in directory "http://qa1091c:8080/job/ci- fs6.0/ws/hudson_ETS_FIRMSOFT6.0_int") : java.io.IOException: error=2, No such file or directory java.io.IOException: Cannot run program "cleartool" (in directory "http://qa1091c:8080/job/ci-fs6.0/ws/hudson_ETS_FIRMSOFT6.0_int") : java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at hudson.Proc$LocalProc.<init>(Proc.java:132) at hudson.Proc$LocalProc.<init>(Proc.java:110) at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:351) at hudson.Launcher$LocalLauncher.launch(Launcher.java:334) at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:66) at hudson.plugins.clearcase.ClearToolExec.lsactivity (ClearToolExec.java:74) at hudson.plugins.clearcase.ucm.UcmChangeLogAction.callLsActivity (UcmChangeLogAction.java:157) at hudson.plugins.clearcase.ucm.UcmChangeLogAction.parseHistory (UcmChangeLogAction.java:119) at hudson.plugins.clearcase.ucm.UcmChangeLogAction.getChanges (UcmChangeLogAction.java:62) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout (AbstractClearCaseScm.java:251) at hudson.model.AbstractProject.checkout(AbstractProject.java:801) at hudson.model.AbstractBuild$AbstractRunner.checkout (AbstractBuild.java:314) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:896) at hudson.model.Build.run(Build.java:112) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) ... 17 more
    via by rlyons_cme,
    • java.io.IOException: Cannot run program "C:\Windows\TEMP\hudson6840666181877118834.js" (in directory "C:\Program Files (x86)\Jenkins\jobs\NodeJs\workspace"): CreateProcess error=193, %1 is not a valid Win32 application at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) at jenkins.plugins.nodejs.tools.DecoratedLauncher.launch(DecoratedLauncher.java:49) at jenkins.plugins.nodejs.tools.NpmPackagesBuildWrapper$2.launch(NpmPackagesBuildWrapper.java:88) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$ProcStarter.join(Launcher.java:360) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:84) at jenkins.plugins.nodejs.NodeJsCommandInterpreter.perform(NodeJsCommandInterpreter.java:42) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) at hudson.model.Run.execute(Run.java:1670) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 19 more

    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,
    158 more bugmates