using curl to download jdk instead of copying jdk file.