Try to use JAVA_HOME from jenkins definition.