I have Java 21 and 8. To resolve jdk compatibility issue with eclipse, add below in eclipse.ini
-vm C:\jdk1_8\bin