I'm also facing the same issue as @user1438038 but in my case I'm using maven, eclipse and OpenJDK21. I tried to add "java --module-path ..." in the eclipse run configuration but I didn't find the correct syntax to point toward my m2 repository.
Reasons:
Low length (0.5):
No code block (0.5):
Me too answer (2.5): I'm also facing the same issue