I have updated my Java to version 10.0.1
and now I can't run Eclipse anymore.
It shows this message:
a java runtime environment (JRE) or Java development Kit(jdk) must be available in order to run eclipse. No Java virtual machine was found after searching the following locations:
C:\Program Files\Java\ire1.8.0_144\bin
I tried from advance settings to insert a new path but doesn't work.
(ignore that the images don't show Java 10 but Java 9 and 8 instead)
First step is that you need to download a JDK 10 (download). Then set your Windows Path
system environment variable to point to the bin
directory of your JDK 10 and remove the entry to the old java version (see the tutorial). Looks like this on my end:
This variable defines where Windows will look for commands. Try it out by typing in java -version
into your cmd
:
If it reads Java 10 it worked.
After that you need to set your Eclipse to Java 10. Therefore, first add the JDK as possible JRE for Eclipse. Go to Window > Preferences > Java > Installed JREs
and add it:
Last step is that you need to tell your project to use this entry now. Go to Properties > Java Build Path
of your project and edit the JRE it uses:
Note that Eclipse does not really support Java 10 yet.
Oxygen has an early draft that supports it, but it may be difficult to get all plugins going. See here.
Photon will support it when released in June. The early build of Photon doesn't support it yet. See here.