allow java_home to be passed in