Bug 20443 - ANT runs under wrong JDK
Summary: ANT runs under wrong JDK
Status: RESOLVED DUPLICATE of bug 24129
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on:
Blocks:
 
Reported: 2002-06-17 09:41 EDT by Doug Rand CLA
Modified: 2002-09-30 15:57 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Rand CLA 2002-06-17 09:41:30 EDT
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.
Comment 1 Rodrigo Peretti CLA 2002-06-17 11:33:31 EDT
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.
Comment 2 Doug Rand CLA 2002-06-17 17:08:47 EDT
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.
Comment 3 Rodrigo Peretti CLA 2002-06-18 15:26:54 EDT
I understand your point and we should consider it after 2.0. Defer.
Comment 4 DJ Houghton CLA 2002-09-10 16:55:29 EDT
Reopening for consideration.
Comment 5 Darin Swanson CLA 2002-09-30 15:57:26 EDT

*** This bug has been marked as a duplicate of 24129 ***