Modified executor to use JAVA_HOME environment variable.