I am developing extension classes in Java for a point of sale system. The POS software calls my Java class, so the code I am writing has no main method. Also, the POS software has to be run on a remote PC in another state, but I have full access to it.
How can I set up Eclipse to both run and debug my Java code using the remote PC running the POS software? I poked around in the Eclipse settings and did some googleing, but I am still unsure if this is even possible.
Using Eclipse Helios, writing Java code with target version 115 but most of the POS systems are running at least 1.5x.
Thanks.
Add something similar to the following to the JVM arguments for the remote process (the POS software):
This enables remote debugging on port 8000. To connect to this process via Eclipse, select the
Runmenu and chooseDebug Configurations.... In the pane on the left, chooseRemote Java Applicationand click theNew launch configurationbutton above the list. The important settings to note are theHostandPortfields. The host value must match the hostname of the remote process, and the port should match what you configured in the JVM settings. You also might need to add entries on theSourcetab to ensure that all of the source code is available to step through.