How do you connect to and debug a remote Java application/server?
Create and run a configuration under Run > Debug Configurations > Remote Java Application.
You cannot do this in Eclipse.
Click Run > Debug As > Remote Application.
Click Run > External Tools.