IntelliJ uses its own jre.
to force IntelliJ to use it, you need to set the environment variable IDEA_JDK to point to your JDK.
IDEA_JDK
then simply restart intellij and gradle gui plugin should now work.