开发者

Cannot find a free socket for the debugger in eclipse

开发者 https://www.devze.com 2022-12-23 01:19 出处:网络
when i try to debug the java programe , it says \"Cannot find a free socket for the debugger in eclipse\".Could you explain h开发者_开发问答ow to resolve the error ?I have found the solution (at least

when i try to debug the java programe , it says "Cannot find a free socket for the debugger in eclipse".Could you explain h开发者_开发问答ow to resolve the error ?


I have found the solution (at least in my case).

Eclipse was installed on a company share drive once I moved it to my local C drive everything worked fine.


As in this thread, you might want to explicitly mention the path of the JVM you are using to execute eclipse.
See this eclipse.ini as an example.

  • bug 12132 mentioned incorrect socks proxy information.
  • bug 27654 refered to a configuration problem (firewall, antivirus?)

The usual checks (some are Windows specifics) are:

  • switch off the vista firewall (it wasn't activated, to be precise)
  • add a firewall rule for java.exe/javaw.exe/eclipse.exe and reactivated it (just to be sure it didn't interfere although it was deactivated)
  • deactivated my antivirus tool (avira antivir)
  • ran eclipse as administrator
  • disabled UAC
  • activated/deactivated wired and wireless network interfaces
  • changed priorities of the network interfaces
  • used different jvms (1.6 and 1.7)
  • created an entirely new workspace


I encountered this error message when migrating to a virtual Win10 machine (Eclipse 2019-09) as of November 2019.

My solution was as follows: First, like Dan above, make sure you do not start eclipse.exe from a network drive, but from C:...\eclipse-dir. After I did this, Windows Defender Firewall came up with a dialogue informing me that it had 'blocked some features of this app' (eclipse.exe). After I pressed the 'Allow access'-Button, I was able to debug as I had been used to.

It appears that you have to add eclipse.exe to the applications that can communicate through Windows Defender Firewall. If you need to do this manually, go to Control Panel -> System and Security -> Windows Defender Firewall and choose Allowed apps. Press 'Change settings' and 'Allow another app...' to navigate to your eclipse.exe using the file picker dialogue.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号