Probably this error is due to your project needing an specigic jdk
the way to solve this is this one:
- go to the folder where you are running eclipse
- find the eclipse.ini file
- add the next text before '-vmargs':
-vm
C:Program FilesJavajdk1.8.0_261injavaw.exe
- CHANGE the path for the one of the jdk you need.