Weird failure with setup-java action and Gradle

I’m seeing some weird failures just in the last hour where the setup-java action runs, but then a subsequent Gradle action cannot run java. Here’s an example:

I confirmed this happens even when re-running older actions that passed previously, so I don’t think it’s any change that we made. Is anyone else seeing this problem?

Relevant screenshot in case it helps:

FWIW, in case anyone else runs into this, changing from the zulu OpenJDK distribution to temurin seemed to fix the problem.

Thanks for sharing your solution here, @msridhar !