Debugging Java programs remotely

You can debug an iSeries Java program using the Java debugger for iSeries, available from the iSeries launch configuration.

You need to export your class files, but not your source. You can debug directly from the source in your workspace.
To debug your Java program using the remote iSeries launch configuration:
  1. Open a Java Perspective if one is not currently available: Click Window > Open Perspective > Java.
  2. Click the down arrow next to the debug icon Debug icon (picture of bug and arrow) on the workbench menu bar.
  3. Select Debug.
  4. In the Launch configurations, click Java application in iSeries server.
  5. Click New.
  6. Optional: Give the configuration a name.
  7. Under the Main tab, fill in the name of the project and the name of the Main class in your project. Also specify the working or home folder on the iSeries server. This is the IFS folder containing the remote Main class (including package, if applicable) which you specified in the Main Class field.
  8. Click Debug.
The Java debugger for iSeries launches.
After you define a configuration, it appears as a shortcut in the down-arrow menu.
Related concepts
Debugging servlets, JSP, and EJB
Debugging Java applications on an iSeries host
Related tasks
Choosing the right debugger information
Starting the debugger for debugging Java on an iSeries host
iSeries options for transform, run, and debug
Running Java programs remotely