Eclipse when launching in debug mode show Cannot connect to VM error
This is because of the localhost setting in your machine. check your ip against localhost in hosts file in /etc folder
adding 127.0.0.1 localhost
to /etc/hosts, solved this very same problem on my mac !