Changed wget to curl for java download