made java_home available to the copy method