I know nothing about how Eclipse integrates with Gradle (I’m a NetBeans guy!). But I would assume it won’t work if you’re still using JDK 19. Thanks Gradle! Odd that that says unknown Java home directory though.
Try from the CLI with JDK 17 first and check it’s actually working for you.