Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse when launching in debug mode show Cannot connect to VM error

Tags:

java

Eclipse is showing Cannot connect to VM error while i opened any Program in debug mode.. Here is Exception stack

 java.net.SocketException: socket closed
    at java.net.PlainSocketImpl.socketAccept(Native Method)  //I dont know which socket is closed in my PC
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
    at java.net.ServerSocket.implAccept(ServerSocket.java:453)
    at java.net.ServerSocket.accept(ServerSocket.java:421)
    at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:95)
    at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56)
    at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135)
    at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107)
    at java.lang.Thread.run(Thread.java:619)

Even my Localhost is working fine,i pinged 127.0.01 and localhost both is working fine,Even i restarted my PC even getting the same error. dont know which socket is closed in my PC.Kindly help me..I am using eclipse 8.x

like image 330
Arun Avatar asked Oct 05 '12 18:10

Arun


1 Answers

one of the solution is after creating a project , "click next" ,enter image description here " not finish"

uncheck the box "create module-info.java file"

like image 181
user14333093 Avatar answered Sep 29 '22 20:09

user14333093