Getting error " Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache [in thread "Daemon worker"]"


When I run the gradlew bootRun command on command prompt then it gives the message like"FAILURE: Build failed with an exception."
Here below is screen shot for this:

happy to schedule call also to fix this issue.

There are few screen shots to set java and gradle path:

Few path for Java:

Did you do what the error message suggests? If so, please share the output, optimally the build --scan URL, but at least the --stacktrace output.

And please do never anywhere share text through screenshots unless there is more information on the screenshot besides the text. They are harder to read, much harder to copy the text, practically impossible to search for, …