Until I found out there is a better way to configure JAVA_HOME for ANT in Eclipse rather than configure it through environment variable, which is, in Eclipse IDE > Run Menu > External Tools Configuration > JRE tab > choose Run in same JRE as workspace option. I choose this option because whenever I change the compiler in the project, the ANT compiler will change accordingly.
Wednesday, July 3, 2013
ANT unable to change JDK path
ANT is depends on JAVA_HOME environment variable to determined which JDK version should be use during compilation. Somehow my situation was even though I have update from existing JDK1.5 JAVA_HOME to a new JDK1.6 JAVA_HOME, ANT still using JDK1.5 during the compilation.
Until I found out there is a better way to configure JAVA_HOME for ANT in Eclipse rather than configure it through environment variable, which is, in Eclipse IDE > Run Menu > External Tools Configuration > JRE tab > choose Run in same JRE as workspace option. I choose this option because whenever I change the compiler in the project, the ANT compiler will change accordingly.
Until I found out there is a better way to configure JAVA_HOME for ANT in Eclipse rather than configure it through environment variable, which is, in Eclipse IDE > Run Menu > External Tools Configuration > JRE tab > choose Run in same JRE as workspace option. I choose this option because whenever I change the compiler in the project, the ANT compiler will change accordingly.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment