We are using Ant Installer to deploy projects and having issues with the compiler
The error as displayed on the error tab is
c:\temp\antinstall28\build.xml:109: The following error occurred while executing this line:
c:\temp\antinstall28\build\tds3\build-tds-deployer.xml:71: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre6"
At the being of the output tab is
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
However, I do a echoproperties and so interesting values as JAVA_HOME is definitely set and is pointi ng to a JDK not an JRE
ANT version is 1.8.2
[echoproperties] env.JAVA_HOME=C\:\\Program Files\\Java\\jdk1.6.0_29
[echoproperties] java.home=C\:\\Program Files\\Java\\jre6
Is there a reason ANT seems to be overriding JAVA_HOME with java.home ?
What happens when you run this from the command prompt:
ant.bat evaluates JAVA_HOME to determine if it correctly set and if not defaults to running java.exe from the PATH. You might have to comment out the "@echo off" statement in ant.bat to determine exactly what the issue is.