java.io.IOException: Cannot run program "C:\Java\ferramentas\play-2.4.3\activator" (in directory "C:\Java\workspaces\ws-play\locadora"): CreateProcess error=193, %1 não é um aplicativo Win32 válido

Jenkins JIRA | Marco Herrera Jimenez | 1 year ago
  1. 0

    I follow the instructions to use the play plugin in windows accord the site: https://wiki.jenkins-ci.org/display/JENKINS/play-plugin However, I found the following error at the job execution: *********************************************************************** Iniciado pelo usuário anonymous Construindo no workspace C:\Users\mjimenez\.jenkins\jobs\PlayJob\workspace Command detected: -Dsbt.log.noformat=true Command detected: testOnly IntegrationTest [locadora] $ C:\Java\ferramentas\play-2.4.3\activator -Dsbt.log.noformat=true "testOnly IntegrationTest" %1 is not a valid Win32 application FATAL: Cannot run program "C:\Java\ferramentas\play-2.4.3\activator" (in directory "C:\Java\workspaces\ws-play\locadora"): CreateProcess error=193, %1 não é um aplicativo Win32 válido java.io.IOException: Cannot run program "C:\Java\ferramentas\play-2.4.3\activator" (in directory "C:\Java\workspaces\ws-play\locadora"): CreateProcess error=193, %1 não é um aplicativo Win32 válido 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:815) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at jenkins.plugins.play.PlayBuilder.perform(PlayBuilder.java:298) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:76) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.IOException: CreateProcess error=193, %1 não é um aplicativo Win32 válido at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 16 more Finished: FAILURE

    Jenkins JIRA | 1 year ago | Marco Herrera Jimenez
    java.io.IOException: Cannot run program "C:\Java\ferramentas\play-2.4.3\activator" (in directory "C:\Java\workspaces\ws-play\locadora"): CreateProcess error=193, %1 não é um aplicativo Win32 válido
  2. 0

    I follow the instructions to use the play plugin in windows accord the site: https://wiki.jenkins-ci.org/display/JENKINS/play-plugin However, I found the following error at the job execution: *********************************************************************** Iniciado pelo usuário anonymous Construindo no workspace C:\Users\mjimenez\.jenkins\jobs\PlayJob\workspace Command detected: -Dsbt.log.noformat=true Command detected: testOnly IntegrationTest [locadora] $ C:\Java\ferramentas\play-2.4.3\activator -Dsbt.log.noformat=true "testOnly IntegrationTest" %1 is not a valid Win32 application FATAL: Cannot run program "C:\Java\ferramentas\play-2.4.3\activator" (in directory "C:\Java\workspaces\ws-play\locadora"): CreateProcess error=193, %1 não é um aplicativo Win32 válido java.io.IOException: Cannot run program "C:\Java\ferramentas\play-2.4.3\activator" (in directory "C:\Java\workspaces\ws-play\locadora"): CreateProcess error=193, %1 não é um aplicativo Win32 válido 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:815) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at jenkins.plugins.play.PlayBuilder.perform(PlayBuilder.java:298) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:76) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.IOException: CreateProcess error=193, %1 não é um aplicativo Win32 válido at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 16 more Finished: FAILURE

    Jenkins JIRA | 1 year ago | Marco Herrera Jimenez
    java.io.IOException: Cannot run program "C:\Java\ferramentas\play-2.4.3\activator" (in directory "C:\Java\workspaces\ws-play\locadora"): CreateProcess error=193, %1 não é um aplicativo Win32 válido
  3. 0

    Right now if your pipeline script inadvertently tries to invoke the {{sh}} step, something approximating this error will fail your build: {code} java.io.IOException: Cannot run program "nohup" (in directory "C:\Program Files (x86)\Jenkins\workspace\fathertime"): CreateProcess error=2, The system cannot find the file specified 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:815) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at org.jenkinsci.plugins.durabletask.BourneShellScript.launchWithCookie(BourneShellScript.java:130) at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:59) at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:98) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:136) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:113) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1277) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1171) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:812) at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1277) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1171) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15) at WorkflowScript.run(WorkflowScript:11) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:55) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:106) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:79) at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) at com.cloudbees.groovy.cps.Next.step(Next.java:58) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:277) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:77) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:186) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:184) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 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>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) 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:815) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at org.jenkinsci.plugins.durabletask.BourneShellScript.launchWithCookie(BourneShellScript.java:130) at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:59) at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:98) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:136) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:113) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1277) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1171) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:812) at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1277) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1171) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15) ... 24 more Finished: FAILURE {code} I expect the build to error out, but something more helpful would be nice, like "The `sh` step is not supported on the Windows platform, please use `bat` or install Cygwin"

    Jenkins JIRA | 9 months ago | R. Tyler Croy
    java.io.IOException: Cannot run program "nohup" (in directory "C:\Program Files (x86)\Jenkins\workspace\fathertime"): 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

    Jenkins failed to Connect Bonobo Git Repository

    Google Groups | 7 months ago | Munira Presswala
    hudson.plugins.git.GitException: Could not init C:\Program Files (x86)\Jenkins\BWorkspace
  6. 0

    git.exe init # timeout=10 ERROR: Error cloning remote repo 'origin' hudson.plugins.git

    Stack Overflow | 5 months ago | Rama KrishnaPrasad Gopisetty
    hudson.plugins.git.GitException: Could not init C:\Tools\Jenkins\jobs\project A\workspace

  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=193, %1 não é um aplicativo Win32 válido

    at java.lang.ProcessImpl.create()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.ProcessImpl.create(Native Method)
    2. java.lang.ProcessImpl.<init>(Unknown Source)
    3. java.lang.ProcessImpl.start(Unknown Source)
    4. java.lang.ProcessBuilder.start(Unknown Source)
    4 frames
  3. Hudson
    Launcher$ProcStarter.start
    1. hudson.Proc$LocalProc.<init>(Proc.java:244)
    2. hudson.Proc$LocalProc.<init>(Proc.java:216)
    3. hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
    4. hudson.Launcher$ProcStarter.start(Launcher.java:381)
    4 frames
  4. jenkins.plugins.play
    PlayBuilder.perform
    1. jenkins.plugins.play.PlayBuilder.perform(PlayBuilder.java:298)
    1 frame
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:76)
    2. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
    4. hudson.model.Build$BuildExecution.build(Build.java:205)
    5. hudson.model.Build$BuildExecution.doRun(Build.java:162)
    6. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    7. hudson.model.Run.execute(Run.java:1738)
    8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    9. hudson.model.ResourceController.execute(ResourceController.java:98)
    10. hudson.model.Executor.run(Executor.java:410)
    10 frames