This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I know this has been discussed here before (several times). I implemented solutions I found in the forums to no avail. My ant file is performing as expected, up to a point. My build is failing here at line 101 of my code:
The error message I'm receiving is:
I am running ant from Eclipse with -debug on (right click on build.xml and run as ant).
I have set JAVA_HOME and PATH environment variables.
I am on Vista. When I rebooted my computer, suddenly my environment variables work. I know this because now my ant build.xml error is:
I am going to change to 1.6 and try again. But, here's what strange...
If I go to my command prompt and type javac -version, the output is "javac 1.6.0_16". Yet, according to my ant build, that's not a valid version (which is a problem since it's the only version I have installed). I'm going to change to 1.6 and see if that fixes the problem. I'll update the forum following the attempt.
[quote[If I go to my command prompt and type javac -version, the output is "javac 1.6.0_16". Yet, according to my ant build, that's not a valid version
The version of the JVM has nothing to do with the values allowed for 'source' and 'target'. For the latter, you use the specification version (or major release version) which is '1.3', 1.4', '1.5', '1.6' or '1.7'; depending on the version of javac you are using (you can't, for example, set the values to '1.7' when using a 1.6.0_16 javac).