It is still possible to try with older JKD version.
For Eclipse, You you need to twodo 2 things,. Go to
Window -> Preference -> java -> Compiler Set Compiler Compliance Level to Specific version In my case, Eclipse version was set to JDK 16 I reverted it to 1.8 as my code was written in 1.8
Window -> Preferences -> Java -> Installed JREs. Add the JRE installation path (Select Standard VM)
It worked smoothly for me..