add JAVA_HOME for EC2 tools