Are you retarded?
This is an exploit of the official Java. It has nothing to do with downloading it. You still haven’t read the alert have you?
Next the code exploits some vulnerability in the VM or interpreter, usually some kind of memory error. The memory error causes memory corruption which causes the VM or whatever to execute improper instructions which cause the actual damage (in the current case allowing the java VM to download and execute arbitrary binary code).