Please check that /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre contains a valid JDK installation

I am attempting to execute a gradle build and keep getting the above-listed error. I have set my default JRE for my environment and the project to a JDK install directory. I tried deleting the project and re-deploying it. I have also edited the alljava.sh file so that my JAVA_HOME and JRE_HOME environment variables point to the JDK install and restarted and tested it to make sure. Please advise how to correct this issue.

Thanks,
Zeigler