java - Getting Error running javac.exe compiler message, while using Ant in Eclipse -
When I run my ant build in Eclipse, I am getting the following error message and the ant build fails.
Error message: Error running javac.exe compiler
The line where the build stops:
& lt; Javac destdir = "$ {classes.home}" debug = "on" fork = "true" memoryinitializeize = "512M" memorymaximize = "1g" & gt; & Lt; Classpath refined = "classpath" /> & Lt; Src path = "$ {source.home}" /> & Lt; / Javac & gt;
Has anyone had to face a similar problem? Or does anyone know what's wrong here?
System Info: Eclipse Helio, JDK 1.5
I had a single problem and There was a problem, in the eclipse Java.home was referring to JRE rather than JDK. I changed it and the build was successful. You can do the following to convert it to JDK:
Preferences> Java> Install JRE's> Add ... Choose 'standard VM' for 'JRE type'> Next directory: Choose your JDK directory (Instead (in my case: C: \ Program Files \ Java \ jdk1.6.0_16), press OK.
Now, you are back to 'installed JRE', select JDK here as well. / P>
The term given below has helped in finding a solution.
Comments
Post a Comment