Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

Using the remote Java application launch configuration

The Remote Java Application launch configuration should be used when debugging an application that is running on a remote VM.  Since the application is started on the remote system, the launch configuration does not specify the usual information about the JRE, program arguments, or VM arguments.  Instead, information about connecting to the application is supplied.

To create a Remote Java Application launch configuration, do the following:

    the workbench menu bar (or Debug Configurations... from the drop-down menu on the Debug tool bar button) to show the launch configuration dialog.
  1. Select the Remote Java Application in the list of configuration types on the left.
  2. Click the New toolbar button. A new remote launch configuration is created and three tabs are shown: Connect, Source, and Common.
  3. In the Project field of the Connect tab, type or browse to select the project to use as a reference for the launch (for source lookup). A project does not need to be specified.
  4. The Connection Type field of the Connect tab allows you to choose how you will connect to the virtual machine. In most cases, you will be attaching to the vm at a specific location, in which case select Standard (Socket Attach). the rest of these instructions assume you have chosen this option. The Standard (Socket Listen) connection type creates a launch that will listen for incoming connections from a remote VM. You will need to specify a port that the launch will listen at.
  5. In the Host field of the Connect tab, type the IP address or domain name of the host where the Java program is running.
    If the program is running on the same machine as the workbench, type localhost.
  6. In the Port field of the Connect tab, type the port where the remote VM is accepting connections. Generally, this port is specified when the remote VM is launched.
  7. The Allow termination of remote VM flag is a toggle that determines whether the Terminate command is enabled in the debugger. Select this option if you want to be able to terminate the VM to which you are connecting.
  8. Click Debug. The launch attempts to connect to a VM at the specified address and port, and the result is displayed in the Debug view. If the launcher is unable to connect to a VM at the specified address, an error message appears.

Specific instructions for setting up the remote VM should be obtained from your VM provider. 

Related concepts
Debugger
Remote Debugging

Related tasks
Launching a Java program
Disconnecting from a VM
Setting execution arguments

Related reference
Debug view


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire