You can specify path to java command in the slave configuration.

-- Sami

David Mata kirjoitti 6.7.2012 kello 16.09:

> The only way to get it that I found was run the slave by using my own script. 
> Start the slave via SSH option was impossible.
> 
> Thank you
> 
> El jueves, 5 de julio de 2012 21:37:55 UTC+2, David Mata escribió:
> Hello. 
> 
> Does anybody know why jenkisn slave cab give this to me?
> 
> Thank you all
> 
> 21:31:43  java.io.IOException: Cannot run program "java" (in directory 
> "/shared/cis/slavejenkins/
> workspace/ext-libs"): java.io.IOException: error=2, No such file or directory
> 
> 21:31:43      at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
> 21:31:43      at hudson.Proc$LocalProc.<init>(Proc.java:244)
> 21:31:43      at hudson.Proc$LocalProc.<init>(Proc.java:216)
> 21:31:43      at hudson.Launcher$LocalLauncher.launch(Launcher.java:709)
> 21:31:43      at hudson.Launcher$ProcStarter.start(Launcher.java:338)
> 21:31:43      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934)
> 21:31:43      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901)
> 21:31:43      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> 21:31:43      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> 21:31:43      at hudson.remoting.Request$2.run(Request.java:287)
> 21:31:43      at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> 21:31:43      at 
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 21:31:43      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 21:31:43      at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 21:31:43      at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 21:31:43      at java.lang.Thread.run(Thread.java:662)

Reply via email to