tags:

views:

191

answers:

1

Hi, when i try to debug the java programe , it says "Cannot find a free socket for the debugger in eclipse".Could you explain how to resolve the error ?

A: 

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.

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
VonC