Latter I thought it is because eclipse does not support the existing jdk.
1. Ensure that the
jdk in the computer environment variable and the
jdk used by eclipse are the same version
2. Add in the
eclipse.ini file in eclipse
The path of jdk's bin folder in your computer
After saving, reopen eclipse to solve