Set JAVA_HOME and lang variables