Community
Participate
Working Groups
This may be more general, but ANT appears to ignore the JRE setting under JDE. If I have JDK 1.4 *and* 1.3 installed, and set the JRE to 1.3, ANT still picks up 1.4 (I presume because Eclipse is running under 1.4). IMHO the only reasonable solution is to have ANT run under the selected JRE.
Ant runs in the same VM as Eclipse is running. If you want to change the VM you can use the -vm <location> param when launching Eclipse where <location> is the location of the required VM.
I guess my point is that if I'm doing development under a specific JRE, I presumably have a reason for that. My natural assumption using a tool through the platform is that the tool will use the same version of the JRE. Since libraries and compilers change in the different versions, this is more than an academic concern. I see your response as a workaround, which I'm grateful to have received. But I think that the ant support should really pick up the JRE setting if available. I suppose you can argue that the JRE setting may not be available... in that situation using the one Eclipse is running under seems reasonable.
I understand your point and we should consider it after 2.0. Defer.
Reopening for consideration.
*** This bug has been marked as a duplicate of 24129 ***