java.io.IOException: CreateProcess: ant publish

Jenkins JIRA | mwiles | 9 years ago
  1. 0

    I'm using distributed builds with UNIX machines. But for one project I need to use windows machine (need some windows DLL for build) I configured Windows slave machine using Cygwin sshd. So I can perfectly execute on cygwin shell: -------- $ /usr/local/ant/bin/ant Buildfile: build.xml does not exist! Build failed ram@TORTUGA ~/workspace $ /usr/local/ant/bin/ant -version Apache Ant version 1.6.5 compiled on June 2 2005 ---------- But hudson job fails with following error: /usr/local/ant/bin/ant all -Dhudson.checkout=true FATAL: command execution failed java.io.IOException: CreateProcess: \usr\local\ant\bin\ant all -Dhudson.checkout=true error=3 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 java.lang.Runtime.exec(Runtime.java:591) at hudson.Proc$LocalProc.<init>(Proc.java:79) at hudson.Launcher$LocalLauncher.launch(Launcher.java:168) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:252) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:236) at hudson.remoting.UserRequest.perform(UserRequest.java:57) at hudson.remoting.UserRequest.perform(UserRequest.java:22) at hudson.remoting.Request$2.run(Request.java:178) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)

    Jenkins JIRA | 9 years ago | ramazanyich2
    java.io.IOException: CreateProcess: \usr\local\ant\bin\ant all -Dhudson.checkout=true error=3
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I'm using distributed builds with UNIX machines. But for one project I need to use windows machine (need some windows DLL for build) I configured Windows slave machine using Cygwin sshd. So I can perfectly execute on cygwin shell: -------- $ /usr/local/ant/bin/ant Buildfile: build.xml does not exist! Build failed ram@TORTUGA ~/workspace $ /usr/local/ant/bin/ant -version Apache Ant version 1.6.5 compiled on June 2 2005 ---------- But hudson job fails with following error: /usr/local/ant/bin/ant all -Dhudson.checkout=true FATAL: command execution failed java.io.IOException: CreateProcess: \usr\local\ant\bin\ant all -Dhudson.checkout=true error=3 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 java.lang.Runtime.exec(Runtime.java:591) at hudson.Proc$LocalProc.<init>(Proc.java:79) at hudson.Launcher$LocalLauncher.launch(Launcher.java:168) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:252) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:236) at hudson.remoting.UserRequest.perform(UserRequest.java:57) at hudson.remoting.UserRequest.perform(UserRequest.java:22) at hudson.remoting.Request$2.run(Request.java:178) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)

    Jenkins JIRA | 9 years ago | ramazanyich2
    java.io.IOException: CreateProcess: \usr\local\ant\bin\ant all -Dhudson.checkout=true error=3
  4. 0

    JadClipse - Eclipse plugin / Discussion / Help:Problem with Eclipse3.3 RC4

    sourceforge.net | 1 year ago
    java.io.IOException: Cannot run program "D:\devtools\jad.exe" (in directory "d:\work\1183032098625"): CreateProcess error=2, The system cannot find the file specified

  1. Handemelindo 6 times, last 1 month ago
  2. kid 5 times, last 1 month ago
  3. rp 2 times, last 2 months ago
  4. jk 1 times, last 5 months ago
  5. Akshay 5 times, last 5 months ago
2 more registered users
75 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: ant publish

    at java.lang.ProcessImpl.create()
  2. Java RT
    Runtime.exec
    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)
    5. java.lang.Runtime.exec(Unknown Source)
    5 frames
  3. Hudson
    Launcher$RemoteLaunchCallable.call
    1. hudson.Proc$LocalProc.<init>(Proc.java:79)
    2. hudson.Launcher$LocalLauncher.launch(Launcher.java:167)
    3. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:251)
    4. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:235)
    4 frames
  4. Hudson :: Remoting Layer
    Request$2.run
    1. hudson.remoting.UserRequest.perform(UserRequest.java:57)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:22)
    3. hudson.remoting.Request$2.run(Request.java:178)
    3 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames