I have one JRE in C:Program Files (x86)Javajre6
and that was the only one at the time I installed Eclipse. I have subsequently installed a complete JDK in C:homeSFTWRjdk1.6.0_21
and changed my JAVA_HOME
environment variable to that. However, every time I start a new Eclipse workspace, it only picks up the old JRE and I have to manually remove it and add the new one.
How do I bind my Eclipse install to the new JDK so that every new workspace points to that only? I checked eclipse.ini
but there was no reference there to which JRE to go to.
UPDATE:
I went into Prefs->Java->Installed JRE
s, added the new location, marked it as default, removed the other, and it was effective only for the current workspace. However, when I opened a new workspace, only the old JRE was available. So this didn't change the core Eclipse config that is applicable across all (at least new) workspaces
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…