Java path issue with buckminster hudson plugin [message #501192] |
Tue, 01 December 2009 08:33  |
Eclipse User |
|
|
|
Hi,
I use the buckminster Hudson plugin in an environment I cannot control.
When I am trying to fetch the target Platform I get an error like this:
java
-Dbuckminster.output.root=/webs/web1001/tomcat/hudsonBuildDa ta/jobs/eclipseMail
Target/workspace//buckminster.output
-Dbuckminster.temp.root=/webs/web1001/tomcat/hudsonBuildData /jobs/eclipseMail
Target/workspace//buckminster.temp
-DtargetPlatformPath=${workspace}/target -jar
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715. jar
-application org.eclipse.buckminster.cmdline.headless -data
/webs/web1001/tomcat/hudsonBuildData/jobs/eclipseMail Target/workspace/
--loglevel info -S /webs/web1001/tomcat/hudsonBuildData/jobs/eclipseMail
Target/builds/2009-11-30_18-38-03/commands.txt ERROR:
java.io.IOException: java: not found
Finished: FAILURE
It looks like java is not on the path so it is not found by the
ProcessBuilder. Since I cannot add java to the path I looked for
JAVA_HOME, which is correct. So I took a look onto the source. Maybe it
is possible to check in the CommandLineBuilder whether java is available
in the path or not, somehow like this:
public List<String> buildCommands(…) … {
…
String javaCommand = "java";
ProcessBuilder processBuilder = new ProcessBuilder(javaCommand);
try {
processBuilder.start();
}
catch (IOException ex) {
// Since the process builder could not start java without a full
// qualified path we will try it with java.home
javaCommand = System.getProperty("java.home") + File.separator +
"bin" + File.separator + javaCommand;
}
// VM Options
commandList.add(javaCommand);
…
}
Greetings,
Juergen
|
|
|
|
|
|
|
|
Re: Java path issue with buckminster hudson plugin [message #503096 is a reply to message #501192] |
Thu, 10 December 2009 15:32  |
Eclipse User |
|
|
|
Hi Jürgen,
I just released version 0.9.3 to the hudson repository which should fix
the issue hopefully. It picks up the JDK you configured in hudson, if
you don't have a JDK configured in hudson, it defaults to the current
behaviour.
Hope it works for you.
Best regards,
Johannes
|
|
|
Powered by
FUDForum. Page generated in 0.04795 seconds