I'm working with an Eclipse IDE which was installed by the Eclipse installer with an Oomph setup.
I recently installed a new version of the JDK and removed the old one.
I then updated the eclipe.ini
file of my Eclipse installation accordingly to use the new JDK.
This works as expected so far, Eclipse is starting and the new JDK is used. But now every time when the Eclipse Updater runs (e.g. by using the "Perform setup task" option), the Eclipse Updater fails with this error when it tries to configure the JDK:
Performing JRE for JavaSE-1.8 = C:\Program Files\Java\jdk1.8.0_191
Creating JRE for JavaSE-1.8 with location C:\Program Files\Java\jdk1.8.0_191
ERROR: org.eclipse.jdt.launching code=0 Target is not a JDK Root. Java executable was not found
The JDK path from the error message is the path of the old JDK version which no longer exists. I haven't found a place where the old JDK path is defined. It's not defined in the Oomph setup file and also when I open the Eclipse Installer it only shows the new JDK path.
How can I fix this error so that the update doesn't fail?
I seems to me that it was wrong to update the path in the eclipe.ini
manually. What should I do instead to update the JDK path without breaking the setup?