Select the Debug As command to select a way to launch the current selection from the resulting fly-out menu.
An example fly-out menu for the Debug As command.
Running and Debugging
Connecting to a remote VM with the Remote Java application launch configuration
Setting method breakpoints