Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Unable to Open Socket when running JDWP

by Retired ‎02-17-2010 01:43 PM - edited ‎02-17-2010 01:45 PM (1,363 Views)


This article applies to the following:

  • BlackBerry® Java Development Environment (JDE) 4.1
  • Java™ Debug Wire Protocol (JDWP)
  • SDR69702


When you run the JDWP tool from the BlackBerry JDE, you receive the following error:

Unable to Open Socket

The JDWP tool does not launch.


The JDWP tool uses port 8000 for communication. If another background process is using that port, the tool will not launch.


Confirm if port 8000 is already in use. Go to a command prompt and type netstat -a. When you run a netstat, all ports that are currently in use are listed.


  1. Go to C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\bin or the directory of the BlackBerry 4.1 JDE installation.
  2. In a text editor, open the settings.rc file.
  3. Add the parameter line JDWPPort=8765 to the file after the following header information:

    ## RIM Java Development Environment
    # Settings file

    The suggested new port value is 8765; however, any port can be used. It is also best practice to add this parameter alphabetically

Users Online
Currently online: 27 members 1,956 guests
Please welcome our newest community members: