ANT script error after installing newer version of JDK on my system

ant, eclipse, java-6

Solution

After additional hunting around in Eclipse, I found in the ANT view an External Configuration Tools option when right clicking my Ant script name and under the JRE tab is where the setting was. I changed the setting to use the same JRE as the workspace and then all was fine.

Just in case anyone else ran into this same problem I thought it might be helpful to post my findings.

Problem

After installing the newer version of the JDK 6 (1.6.0_41) from 1.6.0_37, I went into Eclipse and updated the Installed JREs in the Java section under the preferences menu. I then went into my ANT script to test some changes I made and when I tried to run the ANT script I got this error: Specified VM install not found: type Standard VM, name jdk1.6.0_37 The specified VM is not the jdk1.6.0_41. This has also been updated in the PATH and JAVA_HOME environment variables. Any suggestions as to WHERE else to make a change so that ANT sees this? Here is the error I'm getting: Thanks.

Original source