ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Götz <>
Subject exec task fails for service account
Date Tue, 17 Jan 2017 08:03:48 GMT
Hi guys,

I have some troule with my ANT build.
We just migrated our CI-Server (Jenkins) to a new machine. The former 
was a Windows Server 2008 R2 and now we have a Windows 10 machine.
After installing Jenkins and ANT and Java and all the other stuff and 
restoring the configuration backup I can run my builds again.
But until now I face the problem that an exec tasks in a very early 
stage of the build script fails with the following message:

Execute failed: Cannot run program "javac" (in 
directory "C:\Program Files\Java\jdk1.8.0_111\bin"): CreateProcess error=2

This means that he target file simple does not exists, which is not the 
truth since I can navigate to the installation folder of the JDK and see 
that there is a javac.exe.
Moreover if I run the same build script from the same location (the 
Jenkins workspace folder of the job) manually as user, the exec tasks 
The section in the build script looks like this:

<!-- determine actual compiler version -->
<exec executable="javac" dir="${env.JDK_HOME}/bin">
     <arg value="-version" />
     <redirector outputproperty="compiler.version">
                 <replacestring from="javac"/>

The environment variable JDK_HOME points to C:\Program 
The application server Jenkins is running in (Tomcat 8.5.9) is running 
under the "Local System Account" as services do by default.

Any ideas what this is all about?

Best regards,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message