Hello.

I've just configured an XP VM as a slave service. I configured the
service to log in as Administrator (in Administrative Tools ->
Services). The environment appears to be correctly configured in that
JAVA_HOME is set to the location of the installed JDK, and the directory
containing the javac executable appears on the PATH. I can compile Maven
projects from the command line as the Administrator user, and can also
run the javac executable from the Groovy script console.

However, on attempting to build a checked out project in a job...

[INFO] Compiling 19 source files to
c:\jenkins\workspace\io7m-jaux\io7m-jaux-io7m-jaux-11\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : [INFO]
------------------------------------------------------------- [ERROR]
No compiler is provided in this environment. Perhaps you are running on
a JRE rather than a JDK? [INFO] 1 error [INFO]
-------------------------------------------------------------
mojoFailed
org.apache.maven.plugins:maven-compiler-plugin:3.0(default-compile)
projectFailed com.io7m.jaux:io7m-jaux:2.4.0 sessionEnded [INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE [INFO]
------------------------------------------------------------------------
[INFO] Total time: 9.264s [INFO] Finished at: Fri Jan 11 05:20:58 PST
2013 [INFO] Final Memory: 12M/30M
[INFO]
------------------------------------------------------------------------
Projects to build: [MavenProject: com.io7m.jaux:io7m-jaux:2.4.0 @
c:\jenkins\workspace\io7m-jaux\io7m-jaux-io7m-jaux-11\pom.xml]
[JENKINS] Archiving
c:\jenkins\workspace\io7m-jaux\io7m-jaux-io7m-jaux-11\pom.xml
to 
/jenkins/.jenkins/jobs/io7m-jaux/modules/com.io7m.jaux$io7m-jaux/builds/2013-01-11_13-20-43/archive/com.io7m.jaux/io7m-jaux/2.4.0/io7m-jaux-2.4.0.pom
Waiting for Jenkins to finish collecting data mavenExecutionResult
exceptions not empty message : Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
(default-compile) on project io7m-jaux: Compilation failure No compiler
is provided in this environment. Perhaps you are running on a JRE
rather than a JDK?

What's going on here?

Regards,
M

Reply via email to