Also verified that this works around the problem while still using openjdk: $ EC2_JVM_ARGS=-Djava.net.preferIPv4Stack=true ec2-describe-images
Note, ec2-describe-images calls ec2-cmd, and ec2-cmd has: exec java $EC2_JVM_ARGS $cygprop -classpath "$CP" com.amazon.aes.webservices.client.cmd.$CMD "$@"
so the EC2_JVM_ARGS is passed through.
Also verified that this works around the problem while still using openjdk: ARGS=-Djava. net.preferIPv4S tack=true ec2-describe-images
$ EC2_JVM_
Note, ec2-describe-images calls ec2-cmd, and ec2-cmd has: aes.webservices .client. cmd.$CMD "$@"
exec java $EC2_JVM_ARGS $cygprop -classpath "$CP" com.amazon.
so the EC2_JVM_ARGS is passed through.