I am not sure if latest version of eclipse i.e. Oxygen supports java 10 or not. I configured the JRE for java 10 from preferences on my mac machine.
Also,
So, I requested eclipse to look into it and see why the patch don't work.
Here is the answer I got
Below is the exact comment from Eclipse community:-
Note: This feature patch is disabled. It was originally intended to be installed on top of 4.7.3 builds. Now, the Java 10 support is available on the downloads page via the 4.7.3a builds. The earliest build that is supporting this feature can be downloaded from
So download the supporting build from here. And see the new features of Eclipse with java 10 here.
Hope it helps!
Edit: The patch support was temporary and has been removed. So, now you need to install the latest eclipse version and it's having the support for java 10