I have a java project written using eclipse ide and I want to run it through ssh on a different machine, but I have to do this using the command line and I don\'t know exact
Maven or Ant are the best option but for an Eclipse-only solution
you can choose File -> Export and select Java -> Runnable JAR File
then transfer the JAR file to your other machine and run this from the command line: