rolandweber / Pityoulish

A collection of programming/debugging exercises to support a course on Distributed Systems.
Creative Commons Zero v1.0 Universal
7 stars 0 forks source link

Instructions for Eclipse IDE Beginners #71

Closed Pelotes72 closed 5 years ago

Pelotes72 commented 6 years ago

Fur future reference:

Instructions for Eclipse IDE Beginners

Import jar

  1. Create new, empty Java Project (File > New > Java Project) with default settings
  2. Unfold the created project in Package Explorer
  3. Right click on the src folder and choose Import...
  4. Select General > Archive File and on the next screen, select the appropriate jar file.
  5. Finish.

Run with cmd arguments

  1. Click on the down arrow next to Run (arrow in green circle), or open Run menu.
  2. Choose Run As > Java Application.
  3. The project will be run without arguments and should show inline usage instructions in the Console.
  4. Open Run dropdown again and choose Run Configurations...
  5. Choose the config that was created (if not already selected) and switch to the Arguments tab to edit the Program Arguments.
  6. Run.

Alternatively, you could export the jar and run it from your OS command line.

Export jar

  1. Choose File > Export... > Java > Runnable JAR file...
  2. Choose the Launch configuration that you created before and set the Export destination.
  3. Finish.
rolandweber commented 6 years ago

@Pelotes72: Thanks a lot!

rolandweber commented 5 years ago

I've added a link to this issue in the Tutorial.