How To Create Satellite JAR File - sopeco/Software-Performance-Cockpit GitHub Wiki

In order to run SoPeCo satellites on a remote machine you can create a JAR package that contains all the required libraries and then run it on the remote machine.

  1. In Eclipse create a Run Configuration for the satellite project and test that it you can run the satellite successfully using the created configuration.
  2. In Eclipse select File->Export... menu item.
  3. From the export destination tree select "Runnable JAR file" and click Next.

IMAGE

  1. For "Launch configuration" select the run configuration that you created in Step 1. Provide an export destination, and under "Library handling" select "Package required libraries into generated JAR". Click Finish.

IMAGE

  1. If there is no compile problem, the satellite JAR file is created. You can use Java to run the JAR file from command line using the '-jar' argument:

$ java -jar my-satellite.jar