On your Eclipse IDE, go into Window > Preferences > Java > Installed JREs > and check your installed JREs. You should have an entry with a JDK there....
“Javac” doesn’t work correctly on Windows 10