Eclipse Oxigen5 - "Cannot connect to VM Socket operation on nonsocket: configureBlocking"

Mateus Folletto picture Mateus Folletto · Sep 12, 2017 · Viewed 14k times · Source

I'm receiving following error message when trying to debug a project on Eclipse Oxygen5:

Cannot connect to VM

This Eclipse installation was made on a new machine along with JDK1.8.0_144 and JRE1.8.0_144. I then copied the workspace folder containing the project and placed it in the new machine, where I opened it with Eclipse. Everything seems fine, it runs the project normally, but when I click on debug, it gives me the error. I tried searching for a solution to this issue and came across multiple posts of people having similar problems, but nothing worked. The machine is running under Windows 10 Pro x64 (10.0, Compilation: 14393).

EDIT: I should also mention that I'm connected to this machine via TeamViewer. I transferred the project to the new machine using TeamViewer and opened it's root folder as the workspace folder when Eclipse was launched. I already tried uninstalling everything and reinstalling it.

Answer

Lekso Pozuaho picture Lekso Pozuaho · Mar 7, 2018

I had the same problem, and, after uninstalling JRE/JDK, recovering Eclipse files and a whole afternoon of research, I found that the error "Cannot connect to VM Socket operation on nonsocket: configureBlocking" didn't happen anymore after changing my default output folder from a linked resource to a local folder.

Instructions for changing the default output folder here.