java.io.IOException: Cannot run program "C:\Program Files (x86)\Jenkins\tools\hudson.model.JDK\jdk.exe" (in directory "C:\Program Files (x86)\Jenkins\tools\hudson.model.JDK"): CreateProcess error=193, %1 is not a valid Win32 application

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Provide a working directory instead of pointing it to a file or an empty directory in process builder.

,
Expert tip

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

Solutions on the web

via Jenkins JIRA by himanshu k, 1 year ago
Cannot run program "C:\Program Files (x86)\Jenkins\tools\hudson.model.JDK\jdk.exe" (in directory "C:\Program Files (x86)\Jenkins\tools\hudson.model.JDK"): CreateProcess error=193, %1 is not a valid Win32 application
via jenkins-ci.org by Unknown author, 1 year ago
Cannot run program "C:\Program Files (x86)\Jenkins\tools\hudson.model.JDK\jdk.exe" (in directory "C:\Program Files (x86)\Jenkins\tools\hudson.model.JDK"): CreateProcess error=193, %1 is not a valid Win32 application
via Jenkins JIRA by himanshu k, 1 year ago
Cannot run program "C:\Program Files (x86)\Jenkins\tools\hudson.model.JDK\jdk.exe" (in directory "C:\Program Files (x86)\Jenkins\tools\hudson.model.JDK"): CreateProcess error=193, %1 is not a valid Win32 application
via Stack Overflow by Tony Stark
, 1 year ago
Cannot run program "C:\Users\Justin\.jenkins\tools\hudson.model.JDK\jdk.exe" (in directory "C:\Users\Justin\.jenkins\tools\hudson.model.JDK"): CreateProcess error=740, The requested operation requires elevation
via Jenkins JIRA by jagan kalluri, 1 year ago
Cannot run program "C:\MyApps\Jenkins\tools\JDK_Installed\jdk.exe" (in directory "C:\MyApps\Jenkins\tools\JDK_Installed"): CreateProcess error=87, The parameter is incorrect
via Google Groups by jagankalluri, 2 years ago
Cannot run program "C:\MyApps\Jenkins\tools\JDK_Installed\jdk.exe" (in directory "C:\MyApps\Jenkins\tools\JDK_Installed"): CreateProcess error=87, The parameter is incorrect
java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.(Proc.java:244)
at hudson.Proc$LocalProc.(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
at hudson.Launcher$ProcStarter.start(Launcher.java:382)
at hudson.Launcher$ProcStarter.join(Launcher.java:389)
at hudson.tools.JDKInstaller.install(JDKInstaller.java:268)
at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:141)
at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
at hudson.model.JDK.forNode(JDK.java:143)
at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:358)
at hudson.model.Run.getEnvironment(Run.java:2232)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:941)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1275)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)

Users with the same issue

Once, 1 month ago
Once, 3 months ago
3 times, 6 months ago
Once, 1 year ago
5 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.