Execute curl command using java