Community
Participate
Working Groups
When you want to change the JDK, you have to go to Project menu -> Properties and 1. go to Java Build Path -> Libraries -> remove the old Modulepath and add the new clicking on Modulepath, selecting Add Library -> JRE System Library -> Select the wanted JDK. 2. Go to Java Compiler, select if unselected Enable project specific settings and change Coompiler compliance level 3. Go to Project Facets and change the Version of Java facet This is quite annoying. Can't be added a popup that asks you to do the changes in point 2 and 3 automatically if you want?
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Sincerely, I disapprove the bot.
(In reply to Marco Sulla from comment #0) > When you want to change the JDK, you have to go to Project menu -> > Properties and > > 1. go to Java Build Path -> Libraries -> remove the old Modulepath and add > the new clicking on Modulepath, selecting Add Library -> JRE System Library > -> Select the wanted JDK. Have you seen that "Edit" (also double-click) is enabled for the "JRE System Library" node? I don't see a need to remove-then-add. > 2. Go to Java Compiler, select if unselected Enable project specific > settings and change Coompiler compliance level Did you see [x] Use compliance from Execution Environment ... ? Any idea how JDT could do better than this? > 3. Go to Project Facets and change the Version of Java facet Java facets are not provided by JDT (is it webtools?). If they don't have an option to refer to the selected Execution Environment that might be a relevant RFE on their side. Aside: JDT/UI may not have seen this bug, because the assignee was not changed when moving from Core to UI. Not sure why.
(In reply to Stephan Herrmann from comment #3) > Have you seen that "Edit" (also double-click) is enabled for the "JRE System > Library" node? I don't see a need to remove-then-add. Yes, now I see it. It should be added in newest version :) > Java facets are not provided by JDT (is it webtools?). Must I open another bug???