Maven compile failing

I’m getting mojoException which is due to java_home set to jre. How can i set to jdk in lab ?