I have a new installation of Jenkins LTS running on a windows server. I have both the system property JAVA_HOME set to an installation of a 1.7 JDK and the jenkins' JAVA_HOME configuration to the same installation. When I run a maven build. the compile fails and seems to want to point to the JRE that was installed with the new jenkins LTS native package.
How do I get the javac to point to my JDK version? [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ctmsstudyintegrate: Compilation failure [ERROR] Unable to locate the Javac Compiler in: [ERROR] D:\Tools\Jenkins-1.532.2-LTS\jre\..\lib\tools.jar [ERROR] Please ensure you are using JDK 1.4 or above and [ERROR] not a JRE (the com.sun.tools.javac.Main class is required). [ERROR] In most cases you can change the location of your Java [ERROR] installation by setting the JAVA_HOME environment variable. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.